shell 写单行或多行内容至文件

如何使用 shell 将单行或多行内容写至文件? 单行内容 echo 'content' > file 多行内容 cat > file << EOF hello world !!! EOF tee file <<-'EOF' a b c EOF

August 21, 2019 · 1 min · K8sCat