Some notes on the "-exec" parameter :
- the result are represent by '{}' (literally with the quotes)
- after telling "find" what to process, end the command with "\;" so that it understand that is the end of the command.
find . -iname '<glob pattern>' -exec <commands & parameters to exec> \;
e.g.
find . -iname '*.txt' -exec mv '{}' /my/documents/folder \;
find . -iname '*.tmp' -exec rm -rf '{}' \;
AdiĆ³s !!!
No comments:
Post a Comment