Is there a way to add a ref no to a csv file in a certain field with awk? I need to add 0000000003 to field 6 then 0000000010 to the next, then 0000000017 to the next etc.
Thanks
Input file:
"Mr","T","Smith","1 New Street","Birmingham",""
"Mr","R","Smith","3 New Street","Birmingham",""
Output File
"Mr","T","Smith","1 New Street","Birmingham","00000000003"
"Mr","R","Smith","3 New Street","Birmingham","00000000010"
It doesn't really matter about the leading zeros but that would be nice! Doesn't really matter about the quotes either as I can tr them out.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.