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 桌面]#
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 桌面]#
相关文章推荐
- [[和[有什么区别
- 执行shell脚本的方式
- Linux shell提交github安装以及使用
- shell脚本的相关练习
- ArchLinux下Shell基础学习
- shell脚本中反引号与双引号的·区别与联系
- shell 启动、停止、重启java程序
- 进度条——shell脚本实现
- 用shell脚本编写进度条
- linux shell下除了某个文件外的其他文件全部删除的命令
- shell脚本字符串截取的多种方法
- linuxShell脚本
- shell脚本操作mysql数据库
- Bash相关的环境变量配置
- Jenkins使用shell脚本部署到远程服务器步骤
- android shell打包报错
- 执行shell脚本时提示bad interpreter:No such file or directory的解决办法
- shell ---- 字符串截取方法归纳
- 进度条---shell脚本版本
- bash 特性详解需整理