GNU Find Utilities 4.2.27

The GNU Find Utilities are the basic directory searching utilities of the GNU operating system.
The GNU Find Utilities are the basic directory searching utilities of the GNU operating system. These programs are typically used in conjunction with other programs to provide modular and powerful directory search and file locating capabilities to other commands.

The tools supplied with this package are:

* find - search for files in a directory hierarchy
* locate - list files in databases that match a pattern
* updatedb - update a file name database
* xargs - build and execute command lines from standard input

The find program searches a directory tree to find a file or group of files. Find program traverses the directory tree and reports all occurrences of a file matching the user's specifications. The find program includes very powerful searching capability.

The locate program scans one or more databases of filenames and displays any matches. This can be used as a very fast find command if the file was present during the last file name database update.

The updatedb program updates the file name database used by the locate program. The file name database contains lists of files that were in particular directory trees when the databases were last updated. This is usually run nightly by the cron system daemon.

The xargs program builds and executes command lines by gathering together arguments it reads on the standard input. Most often, these arguments are lists of file names generated by find.

Exemples:

Here is an example operation to make all HTML files in the subdirectory htdocs readable by all using find and xargs. This is a typical example of how find and xargs are used with other utilities to provide powerful directory traversal capability.

find htdocs -name '*.html' -print0 | xargs -0 chmod a+r

See the online info documentation described above for more examples.

last updated on:
December 7th, 2005, 18:47 GMT
price:
FREE!
developed by:
Free Software Foundation, Inc.
homepage:
www.gnu.org
license type:
GPL (GNU General Public License) 
category:
ROOT \ Utilities

FREE!

In a hurry? Add it to your Download Basket!

user rating

UNRATED
0.0/5
 

0/5

Add your review!

SUBMIT