Find the answer to your Linux question:
Results 1 to 1 of 1
I'm trying to find files that are named as such: blah01, blah02, blah03, ..., blah40 How do I search for all the files up to a specific number. Something like ...
  1. #1
    Just Joined!
    Join Date
    Oct 2010
    Posts
    9

    [SOLVED] Number Patterns

    I'm trying to find files that are named as such:

    blah01, blah02, blah03, ..., blah40

    How do I search for all the files up to a specific number. Something like this: find /dir/ -name blah[01-22]

    I'm looking for the format of [01-22]. I saw it once before, but I can't find it anywhere online.

    Thanks for any help.

    Edit: Nevermind. I figured it out after playing with it a little.
    find /dir/ -name blah[01-22]*
    Last edited by whocares357; 10-22-2010 at 07:31 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...