すべてを | |
▼開く |
閉じる▲ |
$ grep -rLi 'kernel' * cron cups/error_log cups/access_log cups/page_log httpd/error_log httpd/ssl_error_log httpd/access_log httpd/ssl_access_log httpd/ssl_request_log lastlog mail/statistics maillog redhat-config-network samba/smbd.log samba/nmbd.log scrollkeeper.log secure spooler wtmp
grepコマンドで、-rオプションにLiオプションを付け、検索する文字列「'kernel'」、検索対象のファイル「*」(すべてのファイル)を指定すると、文字列「kernel」を含まないファイルをカレントディレクトリにあるすべてのディレクトリの中から検索して表示する。検索する文字列は、引用符「'」で囲むこと。
grepコマンドのオプション | |
-r | ディレクトリを再帰的に検索する |
-L | 指定文字列を含まないファイル |
-i | 大文字小文字の区別をしない |
Copyright iDesign Inc., 2005-2012