-F '\t'
[링크 : https://kldp.org/node/120883]
-F fs --field-separator fs Use fs for the input field separator (the value of the FS predefined variable). |
[링크 : https://linux.die.net/man/1/awk]
+
출력은 탭으로 안되는데(기본값이 스페이스)
OFS
The output field separator, a space by default. |
여러번 시도해보니.. awk'{}' OFS='\t'만 먹는다. 환경변수로 인식을 하는 듯?
[링크 : https://www.unix.com/shell-programming-and-scripting/264368-awk-output-seperated-tab.html]
+
$ cat filename | awk -F '\t' '{$2="";print $0;}' OFS='\t' | sed 's/<.*//' |
두번째 값을 날리고, 끝에 탭이 하나씩 남아서 따라오는걸 없애는 법 (두번째가 마지막 column이라고 가정)
[링크 : https://askubuntu.com/questions/232606/stdout-string-manipulate-delete-all-after-a-word-per-line]
+
끝이 스페이스로 끝날때 날리기
[링크 : https://www.theurbanpenguin.com/remove-trailing-spaces-using-sed/]