On Wed, 2003-11-19 at 08:18, William Page wrote:
> Why is that, anyway?  Isn't grep by definition "get regular expression and
> print"?  Why do you have to use egrep to use REs?

You are right.  grep works just fine.  egrep uses the "extended regular
expressions" which I believe or more flexible and perl-like.



> 
> William
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > On Behalf Of Michael Torrie
> > Sent: Wednesday, November 19, 2003 8:04 AM
> > To: [EMAIL PROTECTED]; BYU Unix Users Group
> > Subject: Re: [uug] Help with Regular expressions and backing up files
> > 
> > On Wed, 2003-11-19 at 00:11, Richard Esplin wrote:
> > >   grep -v will do an invert match, only returning the files that don't
> > contain
> > > the specified strings. You could then send that list to cp to make your
> > > backups (make sure to use the -p flag to preserve permissions).
> > >   But unison is a tool that will do exactly what you want. If you put
> > your list
> > > of files in the ignore list in your preferences file, then unison will
> > never
> > > touch them. unison has a lot of other features too, so perhaps it is
> > overkill
> > > for your purposes.
> > 
> > Good idea.  Furthermore, though, you should probably be using egrep, not
> > grep, since it does regular expressions.
> > 
> > Michael
> 
> 
> 
> ____________________
> BYU Unix Users Group 
> http://uug.byu.edu/
> ___________________________________________________________________
> List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
-- 
Michael L Torrie <[EMAIL PROTECTED]>

____________________
BYU Unix Users Group 
http://uug.byu.edu/ 
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to