以下代码实现了cat输出完整换行文本到文件的功能: cat <<EOF > /usr/1.conf a1.sources = r1 a1.sinks = k1 EOF 未经允许不得转载:阿藏博客 » cat输出文本到文件