Linux
csv에서는 awk 보단 cut
구차니
2019. 9. 5. 13:34
헐
소리 절로나오는 상황 -_-
cut -d'|' -f2- infile > outfile2 && mv outfile2 file |
[링크 : https://stackoverflow.com/questions/16448153/awk-how-to-delete-first-column-with-field-separator]
여러개 필드를 날릴려면 -f2,4 이런식으로 리스트로 적어주면 된다.
-f, --fields=LIST select only these fields; also print any line that contains no delimiter character, unless the -s option is specified |