CUT(1)
๐ CUT(1) ๐
okay bestie, welcome to cut โ the manual page, but make it a group chat ๐ซถ it lives in the User Commands section of the manual, and it's about to become your main character tool for slicing up text. no cap.
โจ NAME โจ
cut โ remove sections from each line of files ๐
โจ SYNOPSIS โจ
cut OPTION... [FILE]...
โจ DESCRIPTION โจ
so basically? it prints the selected parts of lines from each FILE to standard output. that's the whole vibe. ๐
and if you give it no FILE at all โ or if FILE is literally just - โ it reads from standard input instead. periodt.
ngl, a lil heads up: mandatory arguments to long options are also mandatory for short options too. the rules apply both ways, fr fr.
๐ธ OPTIONS ๐ธ
-b,--bytes=LISTโ only pick these byte positions ๐-c,--characters=LISTโ only pick these character positions โจ--complementโ flip it, reverse it: take the complement of the set of selected bytes, characters, or fields ๐ฆ-d,--delimiter=DELIMโ use DELIM as the field delimiter instead ofTAB๐-f,--fields=LISTโ only pick these fields; it'll also print any line that contains no delimiter character, unless you specified the-soption ๐-F LISTโ same energy as-f, but it also implies-wand-O ' '๐ฅ-n,--no-partialโ with-b, do not output partial multi-byte characters. we do not do half-characters here, it's giving incomplete ๐ญ-O,--output-delimiter=STRINGโ use STRING as the output delimiter; the default is to just reuse the input delimiter ๐-s,--only-delimitedโ do not print lines that don't contain delimiters ๐ซ-w,--whitespace-delimited[=trimmed]โ use a run of blank characters as the field delimiter; with'trimmed', ignore leading and trailing blanks ๐ง-z,--zero-terminatedโ line delimiter isNUL, not newline. iconic little\0moment ๐--helpโ display this help and exit ๐ซถ--versionโ output version information and exit โญ
๐ THE LIST RULES ๐
Use one, and only one of -b, -c, -f or -F. choose your fighter, bestie, you can't have all four ๐ค
each LIST is made up of one range, or many ranges separated by commas.
selected input gets written in the same order that it is read, and it's written exactly once. no duplicates, no reshuffling. obsessed. ๐
each range is one of these:
Nโ the N'th byte, character or field, counted from1N-โ from the N'th byte, character or field, all the way to the end of lineN-Mโ from the N'th to the M'th (included) byte, character or field-Mโ from the first to the M'th (included) byte, character or field
โจ AUTHOR โจ
Written by David M. Ihnat, David MacKenzie, and Jim Meyering. kings. ๐
๐ฆ REPORTING BUGS ๐ฆ
- Report bugs to:
<bug-coreutils@gnu.org>. - Report any translation bugs to:
<https://translationproject.org/team/>. - GNU coreutils home page:
<https://www.gnu.org/software/coreutils/> - General help using GNU software:
<https://www.gnu.org/gethelp/>
๐ COPYRIGHT ๐
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. like, zero. none. don't come for them ๐ญ
๐ SEE ALSO ๐
- Full documentation
<https://www.gnu.org/software/coreutils/cut> - or available locally via:
info '(coreutils) cut invocation'
okay that's the whole thing!! this page is from GNU coreutils 9.12, dated September 2026, and it's page CUT(1) in the manual ๐ go forth and slice, bestie โ you got this fr fr ๐ธโจ๐ซถ
๐ฆ where this page comes from
- arch rolling: coreutils 9.12-2 ยท GPL-3.0-or-later AND GFDL-1.3-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms