我需要在文件中查找特定匹配项的行号 - 电子邮件地址 - 然后从文件的开头删除它,直到匹配的行。
例如,假设行号是13807。所以我需要保持13808+行完好无损。
下面是一个例子:
$ cat input some lines before mail@server.com and some more afterwards $ cat output and some more afterwards
command-line text-processing
command-line ×1
text-processing ×1