Unix script to remove the first line of a CSV file

后端 未结 4 1986
面向向阳花
面向向阳花 2020-12-23 11:21

I\'ve stated before I\'m not very good at scripting so what I have below copies files from a share directory to mine where I change their permissions. But then I wanted to r

4条回答
  •  孤城傲影
    2020-12-23 11:57

    I tried to delete the first row from a CSV, cd into the location and then the answer to the question didn't work for me, was getting

    sed: can't read 1d: No such file or directory

    So, I've used the following stated here by @amit

    sed -i '1d' filename.csv
    

提交回复
热议问题