akelabanda
Programmer
Hi
I would like to read a file, one line at a time, change a specific column value and write the output back to a file.
How can I do this ?
Example
Input
1,Rajeev,33,Reading,UK
Want to change 33 to 34 and write back as
1,Rajeev,34,Reading,UK
The actual file has some 45 columns. Can this be done using awk or do you recommend PERL ?
Thanks
Rajeev
I would like to read a file, one line at a time, change a specific column value and write the output back to a file.
How can I do this ?
Example
Input
1,Rajeev,33,Reading,UK
Want to change 33 to 34 and write back as
1,Rajeev,34,Reading,UK
The actual file has some 45 columns. Can this be done using awk or do you recommend PERL ?
Thanks
Rajeev