$ echo 'hoge' > sample.txt
$ echo 'hoge' >> sample.txt
-**-Add option **
$ echo -e "aaa\nbbb\nccc" > sample.txt or $ echo -e aaa\\nbbb\\nccc > sample.txt
Recommended Posts