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

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -