Use space as a delimiter with cut command

前端 未结 8 1171
[愿得一人]
[愿得一人] 2020-12-07 07:24

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

What syntax can I use for this?

8条回答
  •  星月不相逢
    2020-12-07 08:29

    I just discovered that you can also use "-d ":

    cut "-d "
    

    Test

    $ cat a
    hello how are you
    I am fine
    $ cut "-d " -f2 a
    how
    am
    

提交回复
热议问题