Posts

Showing posts with the label unix

Practical Unix/Linux GNU Find Command Examples

Image
Find is a very popular program for searching for a particular set of files. If you combine the find command with other applications like 'grep' or any other command then you will be even more productive. Here are some practical examples in the listings below. The commands are run Mac OSX, Darwin Kernel Version 9.8.0. Find Man Page (bsd unix) AME find -- walk a file hierarchy SYNOPSIS find [-H | -L | -P] [-EXdsx] [-f pathname] pathname ... expression find [-H | -L | -P] [-EXdsx] -f pathname [pathname ...] expression DESCRIPTION The find utility recursively descends the directory tree for each pathname listed, evaluating an expression (composed of the ``primaries'' and ``operands'' listed below) in terms of each file in the tree. ... ... Basic Find Here the most basic usage for find. After running the command, a listing of the files with the extension .m (objc code) are displayed. Basic Find, other extensions Here is an example of ...