我真正想做的是使用sed
. 我知道这可能会更容易使用其他东西,但不幸的是需要 sed (测试自己)
所以,例子是
One line here
Two line here as well
Third line could be here
fourth line to end
最终会成为
Two line here
One line here as well
fourth line could be here
third line to end
我可能一直在使用错误的操作,sed
但是是的,不知道。任何线索?