On Thu, 2013-04-11 at 18:07 -0400, Joe Steele wrote:
> 
> On 4/11/2013 4:04 PM, Scott Lair wrote:
> > On Thu, 2013-04-11 at 15:15 -0400, Joe Steele wrote:
> >> On 4/11/2013 12:50 PM, Scott Lair wrote:
> >>> I wasn't having much luck with this so I thought I'd focus on the new
> >>> files search. I have the following line in one of my stats files.
> >>>
> >>> opt/samba/m/ATX/2011/Years/2011/Support201304030936.log 1 13848 NA 0
> >>>
> >>> when I run
> >>> zgrep -e ' 1 [0-9]+ NA 0$' rdiff-backup-data/blah_blah.gz
> >>>
> >>> I get no output.  Seems like it should work.  I don't know reg exp at
> >>> all.
> >>>
> >>
> >> Agreed -- should work.
> >>
> >> Try a progression of matches and see if there's a place where the
> >> match begins to fail:
> >>
> >> zgrep -e 'opt/samba/m/ATX/2011/Years/2011/Support201304030936.log
> >> 1 13848 NA 0' rdiff-backup-data/blah_blah.gz
> >>
> >> zgrep -e 'opt/samba/m/ATX/2011/Years/2011/Support201304030936.log
> >> 1 13848 NA 0$' rdiff-backup-data/blah_blah.gz
> >>
> >> zgrep -e 'opt/samba/m/ATX/2011/Years/2011/Support201304030936.log
> >> 1 [0-9]+ NA 0$' rdiff-backup-data/blah_blah.gz
> >
> > OK, it fails on the [0-9]+ substitution.... hmmmmm
> >
> 
> In that case, I would try it without the "-e", and put a "\" in front of 
> the "+":
> 
> zgrep 'opt/samba/m/ATX/2011/Years/2011/Support201304030936.log 1 [0-9]\+ 
> NA 0$' rdiff-backup-data/blah_blah.gz
> 
> If that works, then forget the "-e" in the zgrep commands that I 
> provided, and put a "\" in front of any of these 5 characters found in 
> the patterns: "(){}+"
> 
Bravo!  Had to use the \ character.  

thank you sir.




_______________________________________________
rdiff-backup-users mailing list at rdiff-backup-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

Reply via email to