Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

read and change string

Status
Not open for further replies.

Yarka

Technical User
Jan 14, 2007
192
ES
Hi,

I would like to know how I can read a specific string and then the following strings of the same row change them by other strings.

For example:
If I have a file like:

aa 22 33
bb 33 23
bt 34 98
a4 99 100
aa 44 66
f6 90 09
...

I need to change all the strings 'aa' the following columns need to have the values 88 80, so the result would be:

aa 88 80
bb 33 23
bt 34 98
a4 99 100
aa 88 80
f6 90 09
...

How I could do it?

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top