📅  最后修改于: 2022-03-11 14:50:01.812000             🧑  作者: Mango
touch sample.txt
echo "this is line one" > sample.txt #adds this as first line
echo "this is line two" >> sample.txt #appends the line to sample.txt
#if you do echo "this will remain alone" > sample.txt
# it will rewrite the sample.txt file with the string passed above