JavaShuo
# sed 查找匹配行
時間 2020-01-26
標籤
sed
查找
匹配
查找匹配的行
sed
-n
'/str_you_want_search/'
p file_name
統計匹配的行數
sed
-n
'/str_search/'
p file_name
|
wc
-l