| Developer's Daily | Unix by Example |
| main | java | perl | unix | DevDirectory |
| Command | find |
| Description | The
"find" command is very powerful. It
can search the entire filesystem for one or more files
that you specify to look for. This is very helpful when a
file has been "lost". You can also use the find command to locate files, and then perform some type of action on the files after they've been located. With this capability, you can locate files using powerful search criteria, and then run any Unix command you want on the files you locate. (See the examples below.) |
| Examples | find
/ -name Chapter1 -type f -print
find /usr -name Chapter1 -type f -print
find /usr -name "Chapter*" -type f -print
find /usr/local -name "*.html" -type f -print
find
/usr/local -name "*.html" -type f
find
htdocs cgi-bin -name "*.cgi" -type f
|