go ahead... be a heretic | |
PerlMonks |
(Dermot) RE: Re: Removing files with extentions of log and date-time.by Dermot (Scribe) |
on Oct 08, 2000 at 21:14 UTC ( [id://35823]=note: print w/replies, xml ) | Need Help?? |
We have a slight misunderstanding. I was speaking of the carets in the three regular expressions a little further down. The regular expressions that you use to select which files to delete. They need to be written without the caret as the text that you want to match is not at the start of the line.
In the grep statement you do need the caret. You need it because you want to exclude files that start with a fullstop (you probably call it a period). So, in the case of the grep you want to match:
This is different from later on when you want to match:
Do you see the difference ?
In Section
Seekers of Perl Wisdom
|
|