Cut command

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 12:40, 1 July 2007 (edit)
BrainSlayer (Talk | contribs)
m (Reverted edit of UmxLy4, changed back to last version by Gerrys)
← Previous diff
Current revision (19:16, 8 May 2010) (edit) (undo)
Glenn (Talk | contribs)
(catchg)
 
(5 intermediate revisions not shown.)
Line 1: Line 1:
 +You are here: '''[[Main_Page|DD-WRT wiki mainpage]] / [[Index:Scripting|Scripting]] / [[Telnet/SSH_and_the_Command_Line|SSH/Telnet & The CLI]] / cut '''
 +
Print selected parts of lines from each FILE to standard output. Print selected parts of lines from each FILE to standard output.
Line 16: Line 18:
With no FILE, or when FILE is -, read standard input. With no FILE, or when FILE is -, read standard input.
- +[[Category:Command-line reference]]
-[[Category:English documentation]]+
- +
-[[Category:commandline command reference]]+

Current revision

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.