shell sed一次简单的应用

阅读更多
#!/bin/bash
for i in 12 14 16 18 20
do
sed -i 's,(('$i')-2),'$i',' spu_as.jmx
./jmeter.sh -n -t spu_as.jmx
mv spu_as_id.log result_spu_as_id/spu_as_id.log.$i
cd result_spu_as_id
./jtlParser spu_as_id.log.$i
cd -
done

 

你可能感兴趣的:(shell sed一次简单的应用)