1.普通用法awk
grep keywordgrep
若果keyword中有空格word
grep "keyword"
例如:
ls | grep mp4
2.「與」操做(其實就是屢次篩選)
grep k1 | grep k2
3.「或」操做
grep -E 'k1|k2'
egrep 'k1|k2'
awk '/k1|k2/'