日期:2014-05-16  浏览次数:20564 次

Linux - How to create a file and write by script?
cat > text.out<<EOF

Write what you want to write here.
...
EOF


EOF is just a notation of end of the file. Once system executes to that word it knows it is the end of the file. So the file is closed and writing ends.