Hi,
I have multiple files such as the following:
File1-M.txt
File2-M.txt
File3-M.txt
...
etc
In each file, there may be lines containing the following text:
data1 = tables/text1
data2 = tables/text2
data3 = /text3
Instead of using vi or other text editor to open each file and manually add "/usr/" to all the "tables/" string, is there a way from the AIX command line to basically go through each file, looking for the string, "tables/" and replace the string with "/usr/tables/"?
Thanks
Mike
I have multiple files such as the following:
File1-M.txt
File2-M.txt
File3-M.txt
...
etc
In each file, there may be lines containing the following text:
data1 = tables/text1
data2 = tables/text2
data3 = /text3
Instead of using vi or other text editor to open each file and manually add "/usr/" to all the "tables/" string, is there a way from the AIX command line to basically go through each file, looking for the string, "tables/" and replace the string with "/usr/tables/"?
Thanks
Mike