LinuxBasics.org

The community that helps people to run Linux

rss
Table of Contents

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.


Copyright (c) by the authors.
Prior to editing, authors agreed to license their contributions by the terms of the GPL.
See our licensing page for details.


Linux® is a registered trademark of Linus Torvalds.


 
  tutorials/using/find.txt · Last modified: 2008/07/20 19:08

LinuxBasics.org

Start Linux-Course Tutorials Linux Links Security Blog Forum E-mail List Search Online Chat

Site-Info

Help Get in Touch Making of LBo

Wiki-Control

Powered by

Linux Apache DokuWiki Mailman RUTE ht://Dig