"Awk"의 두 판 사이의 차이
ph
6번째 줄: | 6번째 줄: | ||
\$ cat somefile | awk '{$1=$2=""; print $0}’ | \$ cat somefile | awk '{$1=$2=""; print $0}’ | ||
아래가 더 나은듯 | 아래가 더 나은듯 | ||
− | awk '{sub($1 FS,"")} | + | awk '{sub($1 FS,"")}7' YourFile |
(스페이스도 없애준다) | (스페이스도 없애준다) | ||
http://stackoverflow.com/a/31849899/766330 | http://stackoverflow.com/a/31849899/766330 |
2017년 5월 8일 (월) 15:37 판
- [gnu awk users guide]
- [tutorial] one long html
print all but first two columns
\$ # http://stackoverflow.com/a/2961994/766330 \$ cat somefile | awk '{$1=$2=""; print $0}’
아래가 더 나은듯
awk '{sub($1 FS,"")}7' YourFile
(스페이스도 없애준다) http://stackoverflow.com/a/31849899/766330