sed でファイルの行頭に空行を入れる
簡単でした。
$ sed -i -e "1s/^/\n/" foo.txt
以下だとうまくいきません。n が残ってしまいます。
$ sed -i -e "1i \n" foo.txt
Author And Source
この問題について(sed でファイルの行頭に空行を入れる), 我々は、より多くの情報をここで見つけました https://qiita.com/KentaGoto/items/38934715d243f7343e6d著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .