常用Linux sh和windows bat脚本总结

版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/dejingqianshen/article/details/51971179

1. Linux sh

mkdir /Project/August

cd test/benchmark/sim
for file in $(ls)
do
    mkdir /Project/August/$file
    echo $file
    i=0
    while [ "$i" -le 6 ]
    do	
        Ap ./$file


        mv /Project/DUMP/*.*    /Project/August/$file/

        i=$(($i+1))
    done
done

2.Windows bat

@echo off
 
set sPath=D:\script
 
for /r %sPath% %%i in (*.*) do (
echo %%i
D:\Run.exe %%i
)
pause


展开阅读全文

没有更多推荐了,返回首页