Shel Script [tail] return line at the end of each concatenated file

0

Live,

I have several files with the same headers. what I wanted to do is copy the contents of all the files to within 1 so but only with 1 header.

I already managed to do this part with the code below

head -3 $FILE1 > all.csv
tail -n +4 -q *.csv >> all.csv

The probleme is that you wanted to change the line after each file. With the above command it does everything I want so that it does not change the line when it changes files.

Does anyone have an idea?

    
asked by anonymous 08.06.2017 / 17:49

0 answers