Sounds interresting ...
replace.sh <oldextension> <newextension> <pattern> <replacing>
replace.sh .txt .sh stuff_* new_stuff_* ???
So you could also say:
replace.sh <oldpattern> <newpattern>
This will replace a whatever.txt to whatnew.sh
I have a similar script here. With a few modification it coud do the trick.
Do you need some kind of menu or fallback if the user didn't enter a <newpattern>?
Its done (mostly)!
Check the usage of this thing. You could do this a smarter way, but here you get the possibility to undo you changes (not really implemented).
At the moment you have to check the generated list which contains the cp stuff.
As always BEWARE of recursive settings ...
Maybe i do some undo stuff ... but atm im a byte out of time )=
Check here for updates of this one:http://pastebin.com/u/yokmp
Like spamming, but:
Ive made a stupid mistake so i removed the script. I may rewrite it later. Not much time left for this these days )=