Hi everybody,
I would like to know how I can use awk command for when it reads a specific string then change the following other strings of the same row.
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
...
Could be somebody help me?
Thank you.
I would like to know how I can use awk command for when it reads a specific string then change the following other strings of the same row.
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
...
Could be somebody help me?
Thank you.