shell [ here 文档的用法初步 ]
2012-12-09 12:53
260 查看
#!/bin/bash cat << !HER! hello this is a here document !HER!
62.txtthis is line 1
this is line 2
this is line 3
this is line 4
62.sh
#!/bin/bash ed 62.txt << !HER! 3 d .,\$s/is/was/ w q !HER! exit 0
相关文章推荐
- shell Learning [while的初步用法]
- shell之here文档
- 【shell】Here文档自动生成Makefile
- shell [ 命令的执行 算术扩展 / 参数扩展 / 参数处理 初步用法]
- Shell中的here文档
- shell here 文档 || #!
- Shell中date的用法
- shell 编程的一些文档地址
- shell学习之-sed用法解析
- shell获取时间函数和date用法参数
- shell脚本介绍-脚本结构和执行-date命令用法-脚本中的变量
- linux shell history 的经典用法
- php-phantomjs中文文档用法示例集合
- Shell中Here document及打包代码(未完成)
- shell script中引号的用法
- MongoDB_03之使用shell命令实现对文档数据的操作
- Shell中read的选项及用法
- shell编程——sed用法
- shell脚本学习之$0,$?,$!等的特殊用法
- shell数组和declare用法