私が正確にやりたいのは、を使用してペアラインの最初の単語を切り替えることです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
、わかりません。手がかりはありますか?