3 edited tags
| link
2 edited tags
| link
1
source | link

find files and move them to another folder with -exec

I tried to find files and move them to another folder

$ find ~ -iregex ".*cheat.*\.pdf" -exec mv "{}" cheatSheet +
find: missing argument to `-exec'

However, the test works

find ~ -iregex ".*cheat.*\.pdf" -exec echo {} +

What's the problem with my usage?