Skip to main content
2 votes

Bash, flatten a multilevel directrory while renaming files

You can use -execdir instead of -exec, as shown below. The -execdir primary is identical to the -exec primary with the exception that cp command will be executed from the directory that holds the ...
David Anderson's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible