Remove column from a csv file directly from mac terminal?
csv, macos
Solution
Try
cut -d',' -f1-2,4- data.csv
Problem
How would one remove the 3rd column for example from a csv file directly from the command line of the Mac terminal. I understand ``` cut -d',' -f3 data.csv ``` extracts the column info out directly into the terminal, but I want the 3rd column to be entirely removed from the dataset. How can I do this via the terminal?