标签: sed
Linux Shell 文本处理工具
Linux Shell 文本处理工具 Linux下使用Shell处理文本时最常用的工具: find、grep、xargs、sort、uniq、tr、cut、paste、wc、sed、awk fi
...Read more...
linux sed 去除行里的空格
linux sed 删除文本行
linux sed 删除文本行 删除第一行 语法 sed 'Nd' file 删除第一行 sed '1d' file 删除最后一行 sed '$d' file 删除指定的行 sed '3d' f
...Read more...
sed 按时间截取日志
sed -n '/2018-04-22/,$p' catalina.out # 某时间到现在的系统日志 sed -n '/2018-04-22 13:56:00/,/2018-04-22 13:
...Read more...
sed 在匹配的下一行插入文本
> 在一个文件的匹配位置的下一行,插入文件内容,使用sed的r命令。 -> c1 ~/tmp ? cat file01 &nbs
...Read more...
linux sed 命令
语法规则 sed [option] 'command' input_file option 选项 -n 使用安静模式(想不通为什么不是-s)。在一般sed的用法中,所有来自stdin的
...Read more...