Hi All,
Sorry if this is a really dumb question, however I'm not the best at shell scripting (let alone awk!) and I've exhausted all other avenues. I would appreciate any asssistance!
Environment is NCR MP-RAS 3.02
I need to be able to do a couple of things to some ascii files that contain >= 1 line/s prior to inserting said file into a database table:-
1. insert the filename & delimiter at the beginning of each line
2. strip leading zeroes from a 4 char field in each line that may have 1 or 2 leading zeroes
Thanks in advance for any light that may be shed on this.
Cheers,
-gumbie.
Sorry if this is a really dumb question, however I'm not the best at shell scripting (let alone awk!) and I've exhausted all other avenues. I would appreciate any asssistance!
Environment is NCR MP-RAS 3.02
I need to be able to do a couple of things to some ascii files that contain >= 1 line/s prior to inserting said file into a database table:-
1. insert the filename & delimiter at the beginning of each line
2. strip leading zeroes from a 4 char field in each line that may have 1 or 2 leading zeroes
Thanks in advance for any light that may be shed on this.
Cheers,
-gumbie.