常用Linux sh和windows bat脚本总结

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


你可能感兴趣的:(常用脚本)