Below you will find pages that utilize the taxonomy term “cut”
April 26, 2017
cut - remove sections from each line of files
purpose This prints to stdout selected parts of lines from either files or stdin, and spits them out on stdout. It can select byte ranges, character ranges and fields based on delimiters.
bytes I’m still working out what actual use cases are for this, but here’s a basic example using the -b flag:
$ echo 'El Niño' | cut -b 1 E #since 'E' is 1 byte long, and I wanted the first byte of the string, it returned 'E' I can do a range: