cut Command Examples

Cut out fields from stdin or files. More information: https://www.gnu.org/software/coreutils/cut.

{{command}} | cut --{{characters|fields}} {{1|1,10|1-10|1-|-10}}

{{command}} | cut --delimiter "{{,}}" --fields {{1}}

cut --characters {{1}} {{path/to/file}}

{{command}} | cut --zero-terminated --fields {{1}}