http://www.perlmonks.org?node_id=953511


in reply to one-liner yields unexpected result

This is even easier to do with the Unix find(1) command:
find /.mnt.* -type f -print
There's more than one way to do it, and often the easiest way isn't Perl.

Replies are listed 'Best First'.
Re^2: one-liner yields unexpected result
by JavaFan (Canon) on Feb 13, 2012 at 20:39 UTC
    That would list the content of /.mnt.94, /.mnt.01 and /.mnt.foo, none of them will be listed by the OPs snippet.
      Sure -- you can always use /.mnt.{1..93} (in Bash and Zsh, at least) if that is an actual problem.