Search code examples
windowsunixbatch-fileglobfilepattern

Filename globbing Windows vs. Unix


Is something like this possible in the Windows standard shell using wildcards only?

$ ls -1 003[5,8]0
00350
00380

Solution

  • Not in the standard windows command shell (cmd.exe). It understands only the ? and * wildcards; no regular expressions.

    Do you have the option of installing Cygwin, Windows Powershell, or another enhanced shell?