tags:

views:

730

answers:

3

I'm trying to use unix cut to remove the first two fields per line. I have input lines of of the form

(token)(whitespace)(token)(lots of text)

The problem is that there exit n tokens per line, so I can't do something like this

cut -f3,4,5,6,7,8,9

is there a way to tell cut to take everything except the specified fields

+1  A: 
cut -f3-

[Body is too short? Is that new?]

Thomas
-d' ' is not required?I think cut -d' ' -f3- would be it.
ring bearer
If `-d` is not given, it defaults to tabs. Actually, if "whitespace" can be both tabs and spaces, neither is right.
Thomas
+4  A: 
cut -d' ' -f3-

-d' ' might be required.

ring bearer
A: 

you can also use awk for this

   awk '{$1=$2=""}1' file
ghostdog74