Enumerate file names

Sometimes it is necessary to explicitly enumerate file names on the command line e.g. when pattern matching and globs may be too complicated.

The tool below provides an easy way to enumerate tree-like structures with embedded enumerations like

  • vid_2017_1.mpg
  • vid_2017_2.mpg
  • vid_2018_1.mpg
  • vid_2018_2.mpg

or similar.

Download: qenum.py

SIGNATURE:
enum.py pattern [separator]
pattern: a composite forms like img20[16-18]_[1-3].jpg separator: item separator "wsp", "tab", "`echo`" (default: whitespace) EXAMPLE: qenum.py Dir[2016-2018]/myfile_[1-3].txt