Cut
문자열 필드를 구분할 수 있다.
Example
아래와 같은 방식으로 사용할 수 있다.
## Field 1:
$ cut -f1 input
## Field 1:
$ cut -f2 input
Checksum example
$ shasum -a 256 $file | cut -d ' ' -f1
Text Processing Commands
텍스트 처리 명령어 목록 |
Text | Common | grep, sed, awk, cat, xargs, rev, tee, ack, tr, stdbuf | Diff | diff, patch | | Cutting | cut, head, tail, less, more, split, watch | | Sort | uniq, sort | | Hash | base64, md5sum, sha1sum, sha224sum, sha256sum, sha384sum, sha512sum | | Clipboard | clip (Windows), pbcopy (Mac OSX), pbpaste (Mac OSX), xclip (Debian) | | E.T.C | regexp, parallel | | |