Date: Sat, 10 Dec 2005 01:42:15 +0300 From: "Andrew P." <infofarmer@gmail.com> To: Martin McCormick <martin@dc.cis.okstate.edu> Cc: freebsd-questions@freebsd.org Subject: Re: Regular Expression Trouble Message-ID: <cb5206420512091442k5545306bp1fcfa6229fb5951e@mail.gmail.com> In-Reply-To: <200512092212.jB9MCQhn092277@dc.cis.okstate.edu> References: <200512092212.jB9MCQhn092277@dc.cis.okstate.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
On 12/10/05, Martin McCormick <martin@dc.cis.okstate.edu> wrote: > After reading a bit about extended regular expressions and > having a few actually work correctly in sed scripts, I tried one in > egrep and it isn't working although there are no errors. > > I was hoping to get only the A records from a dns zone file so > the expression I used is: > > egrep [[:space:]IN[:space:]A[:space:]] zone_file >h0 > > Had it worked, all that would have appeared in the h0 file was > all the A or Address records. Instead, I get those plus almost > everything else in the file. It is obviously not filtering correctly. > Plain grep produces a 0-length output file so that is not too useful > either. Putting double quotes around the RE didn't help either. > > It seems to match almost everything. > > Thanks for any good ideas. > > Martin McCormick WB5AGZ Stillwater, OK > OSU Information Technology Department Network Operations Group > .-- -... ..... .- --. --.. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg" > Isn't it a character class consisting of a white-space and three letters?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?cb5206420512091442k5545306bp1fcfa6229fb5951e>