I need to trim the top 5 rows and the last row of my csv
using a Unix
command that I can run in a shell script
.
I currently have head -n -1 file.csv | tail -n +6 file.csv > newfile.csv
this outputs a new csv starting from row 6 which is what I need however the first part of the command fails as illegal line count -- -1