I would like to join 5 CSV files. In all of them, the data starts at the 8th row. In two of them, I want to take out some lines at the end of the file.
From my precedent question "How to concatenate and sort three CSV files in Gnuplot"
I know how to make it with 3 files and with one of which I select some rows with
tail -q -n+8 file1 <(head -n 470 file2) file3
However, I have 5 files, and in 2 I want to select the number of data rows. How could I make this?. I want to execute this code inside a Gnuplot script.
NOTE: In the following link there are 5 CSV example files. In file5.csv I would like to not concatenate the last 10 lines and in file3.csv not concatenate the last 8 rows.