Solved I want to add header in the format I have mentioned below.

April 2, 2016 at 08:20:27
Specs: Windows 7
Field Name/Start Position/End Position/Length/Format
Record Type/1/1/1/Alpha
Sending system/2/11/10/Alpha
Related File/12/39/28/Alpha
Date/40/47/8/Numeric
Time/48/53/6/Numeric

See More: I want to add header in the format I have mentioned below.

Report •

#1
April 3, 2016 at 20:47:33
✔ Best Answer
a way ....

#!/bin/ksh

awk ' BEGIN { print "Field Name/Start Position/End Position/Length/Format" }
{
print $0
} ' datafile.txt > newfile.txt


Report •
Related Solutions


Ask Question