[ExM Users] create directory based on loop index

Justin M Wozniak wozniak at mcs.anl.gov
Wed Jul 30 09:52:40 CDT 2014


Yes but do it like this:

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



On 07/30/2014 09:50 AM, Ketan Maheshwari wrote:
> 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
>
>
> _______________________________________________
> ExM-user mailing list
> ExM-user at lists.mcs.anl.gov
> https://lists.mcs.anl.gov/mailman/listinfo/exm-user


-- 
Justin M Wozniak

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


More information about the ExM-user mailing list