or条件でのgrep



普段使ったことなかったので覚え書き。

grep で複数の文字列をor条件でマッチさせるには、

# grep -e "hoge1" -e "hoge2" -e "hoge3" textfile

で可能です。


    

コメント




(必須)