2015年1月9日金曜日

Linuxのgrepで特定のキーワードを含まないログファイルを標準出力に出したい場合

Linuxのgrepで特定のキーワードを含まないログファイルを標準出力に出したい場合

% tail -f some.log | grep -v --line-buffered somekeyword

http://stackoverflow.com/questions/7161821/how-to-grep-a-continuous-stream
http://stackoverflow.com/questions/10411616/grep-regex-not-containing-string

0 件のコメント:

コメントを投稿