MaD dUCK on Fri, 2 Feb 2001 01:50:13 -0500


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] regexp???


also sprach gabriel rosenkoetter (on Fri, 02 Feb 2001 12:11:19AM -0500):
> On Thu, Feb 01, 2001 at 07:41:41PM -0500, MaD dUCK wrote:
> > how can i create a regexp which will match anystring of the form
> >   "the xxxxxx is big"
> > unless xxxxxx is "house"
> > 
> > ?
> > 
> > using [^house] obviously doesn't work... what can i use then?
> 
> Um...
> 
>   grep 'the .* is big' | grep -v 'house' < input

not possible. i only have control over a file read by a program which
contains grep-compatible regexps. that's all. (grep -f)

there's got to be a way!

martin

[greetings from the heart of the sun]# echo madduck@!#:1:s@\@@@.net
-- 
Wind catches lily,
scattering petals to the ground.
Segmentation fault.


______________________________________________________________________
Philadelphia Linux Users Group       -      http://www.phillylinux.org
Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce
General Discussion  -  http://lists.phillylinux.org/mail/listinfo/plug