1.echo ‘hello world’ >> /a.txt
2.cat >> /a.txt <<EOF
hello world
EOF
3.sed -i'$a heelo world' /a.txt
4.cat >> /a.txt
hello world
ctrl +d
5.echo "hello world" | tee -a /a.txt
1.echo ‘hello world’ >> /a.txt
2.cat >> /a.txt <<EOF
hello world
EOF
3.sed -i'$a heelo world' /a.txt
4.cat >> /a.txt
hello world
ctrl +d
5.echo "hello world" | tee -a /a.txt