方法一:
sudo tee>/root/test.txt <<-'EOF'
写入内容
EOF
方法二:
sudo cat>/root/test.txt <<END
写入内容
END
方法一:
sudo tee>/root/test.txt <<-'EOF'
写入内容
EOF
方法二:
sudo cat>/root/test.txt <<END
写入内容
END
本文标题:shell 写文件写入内容
本文链接:https://www.haomeiwen.com/subject/ogomirtx.html
网友评论