Find

The find command is extremely useful. It can ofcourse be used to find files with different names but it can be combined with other commands to do operations on those found files. Now that is useful.

Example of using find:

find . -name '*.gpl' -print 

The above statement is a simple example to find files in current directory (.) by case-sensitive name (-name) with the ending '.gpl' ('*.gpl') and print that to screen (-print) which I personally have used for finding gnuplot graph command files.

Can you "find all files ending on eps or EPS in my home directory and order them by size". No sweat:

find ~/ -iname '*.eps' | xargs du |sort -n

Valid XHTML 1.0 Transitional