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

javascript - CasperJS/PhantomJS failing SSL handshakes on some sites even with --ssl-protocol=any -

codeigniter - Fatal error: Call to undefined function lang() in CI Merchant using CardSave -

python - Received unregistered task using Celery with Django -