in reply to Grep Pattern Match
Try this. It could be made more specific if the rest of the characters are always digits, but I've stuck to your written description of requirements.
@matched = grep /^nc\d\d.*\.log$/, @files
Examine what is said, not who speaks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Grep Pattern Match
by LostS (Friar) on Dec 27, 2002 at 15:26 UTC | |
by BrowserUk (Patriarch) on Dec 27, 2002 at 15:33 UTC | |
by LostS (Friar) on Dec 27, 2002 at 15:45 UTC | |
by BrowserUk (Patriarch) on Dec 27, 2002 at 16:00 UTC | |
by LostS (Friar) on Dec 27, 2002 at 16:18 UTC | |
|
Re: Re: Grep Pattern Match
by LostS (Friar) on Dec 27, 2002 at 15:46 UTC | |
by diotalevi (Canon) on Dec 27, 2002 at 16:02 UTC | |
by BrowserUk (Patriarch) on Dec 27, 2002 at 16:17 UTC | |
by diotalevi (Canon) on Dec 27, 2002 at 16:21 UTC | |
by BrowserUk (Patriarch) on Dec 27, 2002 at 16:39 UTC | |
| |
by LostS (Friar) on Dec 27, 2002 at 16:23 UTC |