헐
소리 절로나오는 상황 -_-
| 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 |
'Linux' 카테고리의 다른 글
| 서비스 등록 오류 (0) | 2019.10.10 |
|---|---|
| grep -o 매칭되는 영역만 출력하기 (0) | 2019.09.25 |
| awk csv (0) | 2019.09.05 |
| awk 변수 지정 (0) | 2019.09.02 |
| awk 치환(삭제) (0) | 2019.09.02 |
