Performing a cp on filenames in multiple subdirectories and prefix them with foo- leads to an error:
$ find my-dir -path "*/*" -execdir sh -c 'cp {} foo-{}' \;
cannot create regular file ‘foo-./blabla.jpg’: No such file or directory
On macOS I don't get this ./ prefix and the command works fine.
Is there a way to cp the filename without the ./ prefix?