たとえば、数字で始まる行を含むファイルがあります
1 This is the first line
2 this is the second line
3 this is the third line
4 This is the fourth line
私がやりたいのは、たとえば行 2 の行を削除し、番号付けを更新して、ファイルが次のようになるようにすることです。これを bash スクリプトで実行したいと考えています。
1 This is the first line
2 this is the third line
3 This is the fourth line
ありがとう