cut
Extract columns or byte ranges from lines.
Syntax
$cut [OPTIONS] [FILE...]
Examples
Examples
$cut -d':' -f1 /etc/passwd
Examples
$cut -c1-10 file.txt
Typical use cases
cut --help
man cut
Note
Use -d for delimiters and -f for fields. Handy with /etc/passwd style files.
Export