I need a utility which will scan in a text file and search and replace strings. I also want to keep track of how many strings I've replaced. The following is an example paragraph and which text to replace.
"Bill Gates" with "Mr. Noodles",
"Gates" with "Noodles",
Hi everyone, I would really appreciate any help I could get on the following topic.
I am not very familiar with reg expressions nor with sed, I just know the basic uses. What I am trying to do is the following: I have a huge text file where I would like to replace all occurnces of a certain pattern with another one.
Suppose I have a file which has 1000 columns (4 SHOWN FOR EXAMPLE)
two alphabets are separated by a space and then tab
A A"\t"C C"\t"G G"\t"0 0"\t"T T
A G"\t"C C"\t"G G"\t"A T"\t"0 0
G A"\t"0 0"\t"G C"\t"A A"\t"T C
whenever there is a 0 0 in any column, the output should be print