CUT(1)
π CUT(1) β like, the cut manual page, bestie π
User Commands Β· GNU coreutils Β· cut π
β¨ NAME β¨
cut β remove sections from each line of files π¦
πΈ SYNOPSIS πΈ
cut OPTION... [FILE]...
π DESCRIPTION π
okay so basically: cut prints selected parts of lines from each FILE to standard output. that's it, that's the whole job, and it does it flawlessly, main character energy fr fr π
With no FILE, or when FILE is -, it reads standard input. so stdin besties, you're covered too π«Ά
Mandatory arguments to long options are mandatory for short options too. (yes that's a real sentence, no I did not make it up, it means if a long option needs a value, the short version needs one too π)
-b,--bytes=LISTβ select only these bytes β¨-c,--characters=LISTβ select only these characters πΈ-d,--delimiter=DELIMβ use DELIM instead ofTABfor the field delimiter. not me switching off the tab life π«-f,--fields=LISTβ select only these fields; also print any line that contains no delimiter character, unless the-soption is specified π (read that clause twice, it matters)-nβ (ignored) π literally vibing, does nothing--complementβ complement the set of selected bytes, characters or fields. flip the vibe check π-s,--only-delimitedβ do not print lines not containing delimiters. if it's not delimited, it's not invited πββοΈ--output-delimiter=STRINGβ use STRING as the output delimiter; the default is to use the input delimiter π-z,--zero-terminatedβ line delimiter isNUL, not newline. chaotic but iconic β--helpβ display this help and exit π«Ά--versionβ output version information and exit π
π¦ THE LIST RULES (do not skip, bestie) π¦
Use one, and only one of -b, -c or -f. one. pick your fighter, commit, periodt π
Each LIST is made up of one range, or many ranges separated by commas. Selected input is written in the same order that it is read, and is written exactly once. no duplicates, no reordering, we are not messing around π₯
Each range is one of:
Nβ N'th byte, character or field, counted from 1N-β from N'th byte, character or field, to end of lineN-Mβ from N'th to M'th (included) byte, character or field-Mβ from first to M'th (included) byte, character or field
π AUTHOR π
Written by David M. Ihnat, David MacKenzie, and Jim Meyering. legends only, we thank them for their service πββοΈ
π REPORTING BUGS π
- Report bugs to:
bug-coreutils@gnu.org - GNU coreutils home page:
https://www.gnu.org/software/coreutils/ - General help using GNU software:
https://www.gnu.org/gethelp/ - Report any translation bugs to
https://translationproject.org/team/
π SEE ALSO π
Full documentation https://www.gnu.org/software/coreutils/cut
or available locally via:
info '(coreutils) cut invocation'
Packaged by Ubuntu (9.10-1ubuntu2).
Copyright Β© 2026 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. π¨ (for real, don't come for them if it breaks, that's literally the deal)
that's a wrap, bestie π this page is from GNU coreutils 9.10, dated August 2026, and yes the header said CUT(1) and the footer said the same thing, so consider yourself fully informed. go cut some fields. slay. πβ¨π¦
π¦ where this page comes from
- ubuntu stonking: gnu-coreutils 9.10-1ubuntu2 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms