Hi  Emiliano,
    Thanks for your reply.
 "(for i in `seq 4 1 6 `; do meep f=$i test_$1.ctl; done)"  did not work. ' No 
such file or directory : "test_" ' is responded.
   Maybe , I havn't stated my question clearly.  In fact, the file  name  
test.ctl is fixed , while the prefix of output file could be arbitrary.  For 
example ,  use  prefix " TE_4 ", "TE_5" and "TE_6"  instead of "test_4" 
,"test_5","test_6" for the three times simulations ,respectively.
I have tried
   "(for i in `seq 4 1 6 `; do meep f=$i  filename-prefix='"TE_$i"'; done)"  , 
the prefix of output file is "TE_$i", but not TE_4 . It seems that the value of 
i could not be  used to construct a string  and then pass the string to meep . 
right?
 
feng
    




At 2010-10-19 23:34:36,"Emiliano Di Gennaro" <[email protected]> wrote:

>"(for i in `seq 4 1 6 `; do meep f=$i test_$1.ctl; done)" did not work ?
>Emiliano
>
>ad_hu ha scritto:
>> Hi all,
>> I could change filename prefix in command-line for a single simulation 
>> through the following command in bash
>> meep filename-prefix=' " test" ' test.ctl
>> But how to change filename prefix for a loop? For example, there is 
>> parameter f in test.ctl. I want to realise a loop for paramter f and 
>> output with different filename prefix.
>> (for i in `seq 4 1 6 `; do meep f=$i test.ctl; done)
>> this will realise the loop for f=4 ,f=5 and f=6.
>> If I want to prefix test_4, test_5 and test_6 for the three 
>> simulations,respectively. How should I do? the OS is fedora 13.
>> Any suggestion will be appreciated.
>> feng
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> meep-discuss mailing list
>> [email protected]
>> http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss
>
_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

Reply via email to