cut
Print selected parts of lines e.g., from stdin or files.
Examples
Say one have a file with lines having the form x:y:z
and one wants all the y
's.
cut -d ':' -f 2 filename > output
Where -d
specifies the delimiter one wants to cut on and -f
specifies which field should be printed.
Reference
Full documentation can be found at https://man7.org/linux/man-pages/man1/cut.1.html or with man cut
.
Last updated