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
To remove the first word, until space no matter how many spaces exist, use: sed 's/[^ ]* *//'
sed 's/[^ ]* *//'
Example:
$ cat myfile some text 1 some text 2 some text 3 $ cat myfile | sed 's/[^ ]* *//' text 1 text 2 text 3