bashunixcut

Use space as a delimiter with cut command


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

What syntax can I use for this?


Solution

  • cut -d ' ' -f 2
    

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