摘要: http://man.linuxde.net/sed 阅读全文
posted @ 2016-06-20 15:26 le_wenzhong 阅读(305) 评论(0) 推荐(0) 编辑
摘要: 1.sed 例子 #!/bin/bashsed -i 's/2/3/g' 1.txt 修改文件1.txt中 字符为2的都修改成3 2. 所有以192.168.0.1开头的行都会被替换成它自已加localhost: sed 's/^192.168.0.1/&localhost/' file 192.1 阅读全文
posted @ 2016-06-20 14:16 le_wenzhong 阅读(109) 评论(0) 推荐(0) 编辑