Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: Regex pattern to find directories only with digits

by Bindo (Acolyte)
on Jun 20, 2013 at 10:19 UTC ( #1039935=note: print w/replies, xml ) Need Help??


in reply to Re: Regex pattern to find directories only with digits
in thread Regex pattern to find directories only with digits

Thank you very much good people. I totally understood the concept. You all are the best. By the way if I get a satisfactory answer to a thread that I have started is there a way of closing/locking it? Cos I receive lot of reminders from root saying that I'd have to reply ...etc. Im just a beginner gentlemen so please let me know if there are any rules that I should follow. thanks

  • Comment on Re^2: Regex pattern to find directories only with digits

Replies are listed 'Best First'.
Re^3: Regex pattern to find directories only with digits
by gurpreetsingh13 (Scribe) on Jun 20, 2013 at 10:40 UTC
    If you are on unix or similar shell, use:
    ls|grep -P "^.*\d{8}.*"
    -P in grep is for using perl regex within shell grep.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1039935]
help
Chatterbox?
[Corion]: You say the girls may strip with your permission, You draw the line dividing art from sin :-D
[ambrus]: Corion: I didn't want to start this particular computer up, I took this one away so that I can put the other computer I want to start up in its place, but that probably doesn't make much of a difference.

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2017-01-16 19:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (151 votes). Check out past polls.