Example usages: Find

The find command is a very flexible and powerfull tool on the linux commandline. Here are some example usages which are explained on various pages on this site:

List all files accessible to the system

find / 

used in locate and updatedb to build a search index, and in Speed meets -v to count the files.

List files matching a pattern and execute a command on these files

find . -iname '*.tmp' -exec perl -i.DontBlameStW -pe "s/Perl/PHP/g" {} \;

used in OGG to MP3, URL-Lists for Google sitemaps, Recursive search and replace

Other resources:

There are many creative uses of the find-command on Advanced techniques for using the UNIX find command.

/home/www/LinuxBasics.org/data/pages/tutorials/using/find.txt · Last modified: 2008/07/20 21:08 (external edit)
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0