Hello Everyone,
I am pretty new to Sed and Awk, I am creating a report using Business Objects, its output file is going to be in TEXT format, and I need to format this file into a certain format again using either SED or AWK.
I have around 10 fields in the file, for example account number, name, address etc etc , I need to set field size to them i.e account number should be in first 10 columns or from 1 to 10th column, address should be from 11th to 30th column.
And my other question is leading zeros for example account number is 23456 then it should look like 0000023456.
Can I achieve the above using sed & awk, if yes then can anyone please help me out.
ex:
2087451 ADAMS,S 573 OLD POINT AVE
Thank you
I am pretty new to Sed and Awk, I am creating a report using Business Objects, its output file is going to be in TEXT format, and I need to format this file into a certain format again using either SED or AWK.
I have around 10 fields in the file, for example account number, name, address etc etc , I need to set field size to them i.e account number should be in first 10 columns or from 1 to 10th column, address should be from 11th to 30th column.
And my other question is leading zeros for example account number is 23456 then it should look like 0000023456.
Can I achieve the above using sed & awk, if yes then can anyone please help me out.
ex:
2087451 ADAMS,S 573 OLD POINT AVE
Thank you