I'm super new to using command line so sorry if this seems like a silly question! I'm trying to edit a CSV file in terminal with these set of commands:
(head -n 1 canine_genes_v2.csv && tail -n +2 canine_genes_v2.csv | sort -t, -k2,2n)
sed ‘s/plus/+/g’ canine_genes_v2.csv
sed ‘s/minus/-/g’ canine_genes_v2.csv
cut -d, -f 1,2,3,4,5,6 canine_genes_v2.csv
perl -p -e 's/,/\t/g' canine_genes_v2.csv
My problem is that every time I apply a command it undoes the previous command, I have figured out if I run each command separately and save the output to a different file I'm able to see the change using the md5sum command. But my problem is I want to apply all these commands at the same time to the same file.