摘要: awk 是shell 里的常用命令,非常强大! 阅读全文
posted @ 2020-08-20 23:26 水木青楓 阅读(116) 评论(0) 推荐(0)
摘要: sed 在shell 编程里也很常用,功能强大! 同grep一样,sed提供两种方式: 方式一:stdout | sed [option] “pattern command” 从文本中直接使用pattern匹配搜索。 方式二:sed [option] “pattern command” file 从 阅读全文
posted @ 2020-08-20 23:22 水木青楓 阅读(113) 评论(0) 推荐(0)
摘要: grep 的全称是 Globally search a Regular Expression and Print,是一种强大的文本搜索工具,它能使用特定模式匹配(包括正则表达式)搜索文本,并默认输出匹配行 我们程序员最常用的是查找指定的线程: 去查找指定的进程:ps -ef | grep *** g 阅读全文
posted @ 2020-08-20 23:21 水木青楓 阅读(123) 评论(0) 推荐(0)