Remove First Word in text stream

前端 未结 5 1669
情深已故
情深已故 2020-12-29 03:04

How would I remove the first word from each line of text in a stream? i.e.

$cat myfile 
some text 1
some text 2
some text 3

what I want i

5条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-29 03:32

    run this sed "s/^some\s//g" myfile you even don't need to use a pipe

提交回复
热议问题