grep -v keyword <FILE_name>
^^
At 2000.02.21 13:08, On >fj.os.linux< News-Group
In article <38B0BA53.EF7619C7 _at_ kero.com>
hiroshi _at_ kero.com writes;
|
>> grepについて伺いたいのですが、
>> 通常 grep <キーワード> <file名>で
>> <キーワード>を含んだ行が表示されると思うのですが、
>> それと逆の事はできるのでしょうか?
>> すなわち、<キーワード>を含んだ行*以外*を表示したいのです。
man grepより
===================================================================
-v 指定されたパターンにマッチしない行を対象にします。
===================================================================
--
NEMOTO Sakurao, nemossan _at_ tsden.org
Univ.Indust.Tech. 4-1-1, Hashimotodai,Sagamihara 229-1196 JAPAN
http://www.tsden.org/~nemossan/
References:
- [fol] grep についてHiroshi Ishii
- Prev by Date: [fol] それって……(Re: ホスト名のつけ方)
- Next by Date: [fol] IO.DATA PCML-560EL 認識せず
- Previous by thread: [fol] grep について
- Next by thread: [fol] Re: grep について
- Indexes:[Main][Thread]