Would you want this coded in shell script entirely so you could add more things into the loop, or would an awk one-liner be okay?
Do you have data in fixed width columns? If so, what are the requirements?
What OS are you using? Some commands can be flavour or even version specific.
What shell are you using? ksh, bash, csh perhaps?
Why does the row starting D not have an 8 in Col4?
Okay, ignore that last one.
I'm trying to understand if you want to have a one-off conversion of the file or are you wanting to perform some action using the data on each line as you go.
Hi..Thank u so much for quick response..
Answers to ur questions:
I am using ksh scripts and just wanted one liner command line command to increment third column.
I got the required code from unix forum.. as below::