Cut command

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 07:16, 13 February 2009 (edit)
Alvin (Talk | contribs)
m
← Previous diff
Revision as of 18:27, 30 April 2010 (edit) (undo)
Glenn (Talk | contribs)
(-cat)
Next diff →
Line 17: Line 17:
With no FILE, or when FILE is -, read standard input. With no FILE, or when FILE is -, read standard input.
- 
- 
-[[Category:English documentation]] 
[[Category:commandline command reference]] [[Category:commandline command reference]]

Revision as of 18:27, 30 April 2010

You are here: DD-WRT wiki mainpage / Scripting / SSH/Telnet & The CLI / cut

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.

Options:

       -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.