tags:

views:

1931

answers:

2

I want to use space as a delimiter with the cut command. What would be the syntax?

+6  A: 
cut -d ' ' -f 2

Where 2 is the field number of the space-delimited field you want.

RichieHindle
+2  A: 

You can also say

cut -d\  -f 2

note that there are two spaces after the backslash.

Chas. Owens