Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] grep sort of thing
- Date: 11 Jun 2003 16:58:40 -0700
- From: David Blomberg <dblomber@example.com>
- Subject: Re: [tlug] grep sort of thing
- References: <1055371391.9866.6.camel@example.com> <1055373247.9865.23.camel@example.com> <20030611161427.5655.B-ROBSON@example.com>
- Organization:
> file | grep WORD | wc -l > > > > or are you trying to print the word for each time it appears? > > > > No, the search expression is a regular expression so it may be different > each match, in this case it /will/ be different each time. > > I think Bruce's idea is the better than anything I've come up with. > > Brett Never one to let something go: #!/bin/sh export TEST_VAL="`cat $2 | grep $1 | wc -l`" if [ $TEST_VAL -gt 0 ]; then echo $1 exit 0 fi echo "word not present in file"
- References:
- Re: [tlug] grep sort of thing
- From: David Blomberg
- Re: [tlug] grep sort of thing
- From: David Blomberg
- Re: [tlug] grep sort of thing
- From: Brett Robson
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] grep sort of thing
- Next by Date: Re: [tlug] im-ja v0.5
- Previous by thread: Re: [tlug] grep sort of thing
- Next by thread: Re: [tlug] grep sort of thing
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links