Hi Experts,
I am working on HP-UX. I am new to shell scripting. I would like to have a shell script which will prefix:
- "H|" before first row of my file and,
- "T" for all other rows of the file.
For Example - File before running the script
20100430|4123451810|218.50|TC
20100430 $150.00 INDIA 1234567 2 3456789
20100430 $150.00 INDIA 1234567 2 3456789
20100430 $150.00 INDIA 1234567 2 3456789
20100430 $150.00 INDIA 1234567 2 3456789
File After Running the script
H|20100430|4123451810|218.50|TC
T20100430 $150.00 INDIA 1234567 2 3456789
T20100430 $150.00 INDIA 1234567 2 3456789
T20100430 $150.00 INDIA 1234567 2 3456789
T20100430 $150.00 INDIA 1234567 2 3456789
Thanks in Advance,
Phani Akella.