[ExM Users] create directory based on loop index

Ketan Maheshwari ketan at mcs.anl.gov
Wed Jul 30 09:50:43 CDT 2014


In T, is it possible to create directory on the fly within a foreach loop
like so:

foreach i in [0:99]{
    create_dir("dir"+i);
    do_some_op(inargs, "dir"+i+"/"+outfile);
}

Thanks,
Ketan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/exm-user/attachments/20140730/32d4aa17/attachment.html>


More information about the ExM-user mailing list