Created
February 1, 2015 09:00
-
-
Save momota10/9a1f8ffb22148282f33c to your computer and use it in GitHub Desktop.
先頭の行に任意の文字列を追加するコマンド
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sed -i '' '1s/^/test0/' test.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
元ファイル
test.txt
test1
test2
コマンド入力後
test.txt
test0test1
test2
※phpでは\nを入れると改行できる