shell find and replace
Posted on 2013-06-14
I am trying to to a seemingly easy task but seem to do it wrong. I wonder if someone can give me some assistance on this.
I simply like to find a file and replace it. I looked in google and there are several examples but it seems they are only concerned to rename extensions so somehow I can not make it work.
What I try to do is to rename the file ".something" to ".anything" across a specified directory and the sup directories within it.
I would be very happy if someone could assist me on what command to us. I run CentOS 6 Linux.