
shell
文章平均质量分 70
iteye_3911
这个作者很懒,什么都没留下…
展开
-
grep 实用例子
首先创建示例文件$ cat demo_fileTHIS LINE IS THE 1ST UPPER CASE LINE IN THIS FILE.this line is the 1st lower case line in this file.This Line Has All Its First Character Of The Word With Upper Case....原创 2012-07-13 16:00:05 · 116 阅读 · 0 评论 -
sed系列:用地址或者模式匹配输出文件行
Unix Sed Introduction sed is a “non-interactive” stream-oriented editor. Since its an “non-interactive” it can be used to automate editing if desired. The name sed is an abbreviation for stream ed...原创 2012-06-21 15:02:06 · 143 阅读 · 0 评论 -
sed系列:行或者模式匹配删除特定行
“p” command prints the buffer (remember to use -n option with “p”)“d” command is just opposite, its for deletion. ‘d’ will delete the pattern space buffer and immediately starts the next cycle.S...原创 2012-06-21 15:52:41 · 948 阅读 · 0 评论 -
sed系列:多命令执行
Syntax:#sed -e 'command' -e 'command' filenameNote: -e option is optional for sed with single command. sed will execute the each set of command while processing input from the pattern buffer.让我们...原创 2012-06-22 17:01:01 · 748 阅读 · 0 评论 -
sed系列:文件多行操作
Sed reads line by line, removes any trailing new lines, places a line in a pattern space buffer, process as per the given commands and prints the pattern space.n case, if you want to delete all the ...原创 2012-06-26 12:51:13 · 303 阅读 · 0 评论 -
sed系列:pattern buffer和hold buffer
As its name implies, sed hold buffer is used to save all or part of the sed pattern space for subsequent retrieval. The contents of the pattern space can be copied to the hold space, then back again...原创 2012-06-26 15:13:48 · 227 阅读 · 0 评论