shell,sed ,写入文件,追加内容,修改内容

时间:2019-02-13 21:43:05   收藏:0   阅读:1587

 

#! /bin/bash

echo "测试写文件"
cat>test1<<EOF
这是一个由shell创建的文件
this is a file created by shell.
we want to make a good world.
EOF

其中,<<EOF 表示当遇到EOF时结束输入。

cat>test1<<EOF 这间没有空格

原文:https://www.cnblogs.com/MeiCheng/p/10371927.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!