Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨我想制作一个批处理脚本来转换:
/VAR/file.css
进入
/VAR_file.css`
VAR是一个身份证。我需要为 to 创建一个i=0循环i<=36000
VAR
i=0
i<=36000
有任何想法吗?
我从未操作过批处理脚本..
您可以使用表达式创建从0to的序列并移动文件:36000{0..X}
0
36000
{0..X}
for i in {0..36000} do mv "/$i/file.css" "/${i}_file.css" done
for i in `seq 0 36000` do for file in /$i/*.css do mv /$i/$file /$i_$file done done