I search for some files and I want to replace old content with new content from other files, so I have
#!/bin/bash
find /home/old -path "*$1" -exec cat /home/new/$1 > {} \;
When I execut:
> sh find.sh 'blam.php'
Problem is the script is creating a file called {} in the same dir with find.sh