?? batch_test.sh
字號:
#!/bin/bash# This is only an example file to help you getting started with# shell-scripting. It does not work as it is, you have to adjust# it (and the prepare the tcl file for it)!OutputDir="/home/myuser/sim_data"para1_list="1 2 3"para2_list="10 20 30"for para2 in $para2_list;do for para1 in $para1_list; do cmd="ns test_batch.tcl $para1 $para2 > $OutputDir/output-p1$para1-p2$para2.txt" echo $cmd eval $cmd # If you run several simulations in a batch, it may be necessary # to delete your tracefiles at the end of every simulation, to prevent # you from running out of disk space. there is an example on how to # do this in the vntest.tcl file. # Also, do not forget to define the opt(outdir) in your tcl file # in function of the parameters, else a new simulation overwrites # the previous one :) donedone
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -