Re: multiple grep conditions ?

[email protected] Wed, 21 May 2014 12:28:55 +1000
Newsgroups gmane.org.user-groups.slug.general
Message-ID <[email protected]>
> grep -q '07/2014' part2 && exit 0 grep -q '15/06/2014' part2 && exit 0 grep
> -q '20/06/2014' part2 && exit 0
> grep -q '25/06/2014' part2 && exit 0

is this the way to do this ?

grep -q -e '15/06/2014' -e '20/06/2014' -e '25/06/2014' file2 && exit 0



-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html