I have a file named "abc.h.data"
Its contents are
HDR20090113
abcde
adcerty
gtyhsrd
...
TRL20090113
What I want is to add the filename (i.e. abc.h.data) to the end of the first line so that content looks like the following
HDR20090113abc.h.data
abcde
adcerty
gtyhsrd
...
TRL20090113
also, I am reading the filename from command line.
Kindly help
Thanks