Imagine my directory looked like this:
./original.txt
./blah.1.txt
./blah.2.txt
[...]
./blah.999999.txt
I essentially want to replace every blah.*
file with the contents of original
. My initial try was to do this:
$ cp original.txt blah.*
But I get:
cp: target ``blah.1.txt' is not a directory
find
, but you could try executing commands through it.