how to write string to file in bash
echo
https://linux.die.net/man/1/echo
$ touch readme.md
# 追加 >>
$ echo "hello world" >> readme.md
# 覆盖 >
$ echo "hello world" > readme.md
tee
https://linux.die.net/man/1/tee
# tee
$ echo "hello world" | tee readme.md
$ tee readme.md <<< "hello world"