Use space as a delimiter with cut command

Jaelebi picture Jaelebi · May 3, 2009 · Viewed 328.6k times · Source

I want to use space as a delimiter with the cut command.

What syntax can I use for this?

Answer

RichieHindle picture RichieHindle · May 3, 2009
cut -d ' ' -f 2

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