published under license CC4-BY
posted in category Systems Software / Bash & Shells
posted at 18. Nov '23
Find Command Snippets
Because who remembers {} +...
Find Files By Name And Move To A Directory
Finds files in current directory non-recursively by matching the name potter with wildcards and then moves to potterdir directory.
find . -iname '*potter*' -type f -maxdepth 1 -exec mv -t potterdir/ {} +
Just one for now.
Add Comment