find .git/svn/refs/remotes/git-svn/ -type f -name '.rev_map*' \
-exec cp '{}' '/backup/'$currentRevision$(basename '{}') ';'
When $currentRevision is 1234, I expect the command to copy .git/svn/refs/remotes/git-svn/.rev_map.b750ebf6-c7df-ed4a-bdf3-f739ba673275
to
/backup/1234.rev_map.b750ebf6-c7df-ed4a-bdf3-f739ba673275
.
But it throws error:
cp: cannot create regular file '/backup/1234.git/svn/refs/remotes/git-svn/.rev_map.b750ebf6-c7df-ed4a-bdf3-f739ba673275': No such file or directory
$(basename '{}')
doesn't seem to run.
What type of data does -exec
accept, string or "raw bash commands"?
How do I fix it?