Thursday, November 25, 2010

Windows batch filename globbing

Programmer Question

In short, I would like to port this bash expression to a windows batch file:



echo {foo,bar,baz}/*.{agent,event,plan}



Currently I use echo foo/*.agent foo/*.event foo/*.plan bar/*.agent etc... but as the number of directories grow and some new extensions are used it gets very tiresome to modify this line.



Find the answer here

No comments:

Post a Comment

LinkWithin

Related Posts with Thumbnails