http://qs321.pair.com?node_id=1039935


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.