joeroe3380
MIS
Hi group,
( sed '$d' infile1 ; sed '1d'infile2 ; sed -n '$p'infile2) > outfile.dat
I tried the above script to concatenate 2 files stripping the last line of first file, appending the second file after stripping the first line of second line. In the process as the last line of the second file was also stripped off which was kind of strange and undesirable, i am forcing the last line of the second file into the output file. however, im not getting the desired result.
Please help in editing the above code.
Thanks
Roe.
( sed '$d' infile1 ; sed '1d'infile2 ; sed -n '$p'infile2) > outfile.dat
I tried the above script to concatenate 2 files stripping the last line of first file, appending the second file after stripping the first line of second line. In the process as the last line of the second file was also stripped off which was kind of strange and undesirable, i am forcing the last line of the second file into the output file. however, im not getting the desired result.
Please help in editing the above code.
Thanks
Roe.