How to find and change a specific text in a text file by using shell script
I am using shell script programming and I have text file consistes of 2 fields separated with TAB space, I want to search for a specific value in the second feild then change that value and then read the value of the first field of the same record.
the text file is
for example I want to find the value 126.96.36.199, change it to 0.0.0.0 and read the value of the first field for the same record which is 2.
so could u tell me how can I do this operation by using shell script programming?
What I recommend is you go to www.tldp.org and read their advanced bash scripting guide. It will have all the info you are looking for when combined with man pages.
|All times are GMT -5. The time now is 06:38 PM.|