User Tools

Site Tools


bash:cut

This is an old revision of the document!


BASH - cut

The cut command allows cutting of sections based on byte positions, characters, or fields separated by a delimiter like the ‘-‘ or ‘:’ characters.

cut - remove sections from each line of files.

cut can return section based on number of bytes (-b), characters (-c), or fields (-f) when fields are separated by a delimiter(-d).

Default delimiter is tab.


Cut using Bytes

Cut using Characters

Cut using Fields


bash/cut.1576190002.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki