Hatena::ブログ(Diary)

わからん

2011.11.17

[] grep の e オプションには or 検索以外にも機能があったのか

"-n" などを検索したいときに grep -e -n hoge.txt と使う。

-e PATTERN, --regexp=PATTERN

 Use PATTERN as the pattern. This can be used to specify multiple search patterns,

 or to protect a pattern beginning with a hyphen (-). (-e is specified by POSIX.)

Google