To execute a command on every file/dir
$ find [expression..] -exec [command..] '{}' \;
example: find all files/dirs named CVS and delete them:
$ find -name CVS -exec rm -Rf '{}' \;
example: find all files containing a string:
$ find * -exec grep -l '<string>' {} \;
To search only on the given directory:
$ find [directory..] -maxdepth 1cheat sheets.
$ cheat find( add new | see all )
- updated sheets

- mysql_select
- cheat
- cryptsetup
- burm
- perl
- port
- yuilang
- queriac
- mechanize
- sness
- nonsense
- haml
- git
- assert_valid
- marsmission
Advertisement