【发布时间】:2015-05-28 19:05:38
【问题描述】:
我有一个格式如下的文件
email1@email.com some string with no set width
email2@email.com another string
email3@email.com yet another string!!
areallylongemail@email.com shortstring
我想要做的是运行一个 bash 命令,该命令将获取此文件并从每行的开头删除电子邮件+空格并将其输出到另一个文件。输出文件应该是
some string with no set width
another string
yet another string!!
shortstring
到目前为止,我有sed 's/^\S+\s//' test_input.txt > test_output.txt,但似乎不起作用....
【问题讨论】:
标签: linux shell command-line-interface cut