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

shell cat的特殊编辑脚本方法

2016-06-16 22:25 302 查看
[root@localhost~]$cat >new.txt ##编辑
this is new text. --输入内容
^C --ctrl+c退出
[root@localhost~]$cat new.txt --查看new.txt的内容
this is new text.

[root@localhost~ 桌面]# cat <<EOF --开始
> DFDF
> DFDF
> FDDF
> EOF --结束,下面为输出内容
DFDF
DFDF
FDDF
[root@localhost 桌面]#
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: