Mailing List ArchiveSupport open source code!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Mmmm...regular expressions. (was Re: Bash shell line continuation)
- To: tlug@example.com
- Subject: Mmmm...regular expressions. (was Re: Bash shell line continuation)
- From: Shimpei Yamashita <shimpei@example.com>
- Date: Fri, 14 Sep 2001 21:22:18 +0900
- Content-Disposition: inline
- Content-Type: text/plain; charset=us-ascii
- Delivered-To: tlug@example.com
- In-Reply-To: <3BA17054.A68A39F9@example.com>
- List-Help: <mailto:tlug-request@example.comsubject=help>
- List-Post: <mailto:tlug@example.com>
- List-Subscribe: <mailto:tlug-request@example.comsubject=subscribe>
- List-Unsubscribe: <mailto:tlug-request@example.comsubject=unsubscribe>
- Old-Return-Path: <shimpei@example.com>
- Reply-To: tlug@example.com
- Resent-From: tlug@example.com
- Resent-Message-ID: <Yy_Iw.A.yqC.xjfo7@example.com>
- Resent-Sender: tlug-request@example.com
- User-Agent: Mutt/1.3.18i-ja0
On Fri, Sep 14, 2001 at 11:49:56AM +0900, brettr wrote: > grep -vi \.gif ex010905.log | grep -vi \.jpg | grep -vi \.jpeg | / > grep -vi 'googleboot |openfind > summary.log I think you meant to say grep -vi '\.gif' .... or grep -vi \\.gif .... Shells eat unquoted or unescaped backslashes, so grep will only see .gif in your example. You may also want to use '\.gif\b' instead of '\.gif' -- that way, the expression will only match .gif at the end of a word, and you won't drop lines containing words like big.gift.html on the floor. (If you aren't running Linux, you may have to use egrep instead of grep to get this feature.) -- Shimpei Yamashita http://www.shimpei.org/
- Follow-Ups:
- RE: Mmmm...regular expressions. (was Re: Bash shell line continu
- From: s-luppescu@example.com
- References:
- Bash shell line continuation
- From: brettr <brettr@example.com>
Home | Main Index | Thread Index
- Prev by Date: ADSL and USB
- Next by Date: Re: Printing PostScript
- Prev by thread: Re: Bash shell line continuation
- Next by thread: RE: Mmmm...regular expressions. (was Re: Bash shell line continu
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links