Example
用另一個符號":"去分隔欄
-d '分隔符' (Default: tab)
echo 'abc:123' | cut -d':' -f 1
Other Delimiter
--output-delimiter=STRING # STRING as the output delimiter. The default is to use the input delimiter
輸出指定數量 char 及 byte
Opts
- -c, --characters
- -b, --bytes
Range
N N'th byte, character or field, counted from 1
N- from N'th byte, character or field, to end of line
N-M from N'th to M'th (included) byte, character or field
-M from first to M'th (included) byte, character or field
i.e.
echo 123456 | cut -c 3-
3456