Extract selected fields or character ranges from each input line.
cut -d, -f1,3 users.csvLINUX COMMAND ATLAS · COMMAND GUIDE
Extract selected fields or character ranges from each input line.
GNU Coreutilscut OPTION... [FILE]...
Extract selected fields or character ranges from each input line.
cut -d, -f1,3 users.csvPrint the first colon-separated field from each line.
cut -d: -f1 /etc/passwdPrint characters 1 through 12 from each line.
cut -c1-12 names.txtcut works with simple delimiters, not general CSV quoting. Byte and character positions may differ with multibyte encodings.