I have a couple of files like so, (on Mac OS X):
product-103-footer.tpl
product-103-header.tpl
product-103.tpl
I want to replace '103' in all the filenames with something else using grep and sed, or something like that.
How do I do it?
Here's some pseudo command line of what I want to achieve
find . /[103] | grep 103 | sed s/103/104/
Hope this makes sense!
EDIT:
Getting closer:
find . -name 'product-103*' -print | sed 's/103/104/g'