Cut command

From DD-WRT Wiki

Revision as of 18:31, 11 July 2007 by Patos (Talk | contribs)
Jump to: navigation, search

Print selected parts of lines from each FILE to standard output.

Usage: cut [OPTION]... [FILE]...

Prints selected fields from each input FILE to standard output.


       -b LIST         Output only bytes from LIST
       -c LIST         Output only characters from LIST
       -d CHAR         Use CHAR instead of tab as the field delimiter
       -s              Output only the lines containing delimiter
       -f N            Print only these fields
       -n              Ignored

With no FILE, or when FILE is -, read standard input.