I am trying to cut the first 10 columns of a csv file that has about 30 million lines.
My command is:
cut -d "," -f 11- data.txt>cutdata.txt
It only processes the first line. It runs for a while, and it does write out the new file, but with only the first line cut properly.
If I take only the first 100 or so lines of the data.txt and use the same cut command, it works perfectly.
Can this be done with sed or awk? If so, can you provide the exact syntax?