您的位置:首页 > 运维架构 > Linux

Linux tip - How to create a file and write by script?

2013-04-02 18:21 447 查看
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.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: