scripting - Automate editing .csv file -
i working .csv files contain 4 fields , varying count of records in each file. need delete 2nd, 3rd , 4th field , first record in each file.
i have lot of files working , not looking in excel or csv editor. there way batch file or other scripting language ? info
using shell script:
tail -n +2 input.csv | cut -d ',' -f 1,5- > output.csv
Comments
Post a Comment