我知道是变量,就是想不起$i是不是特殊变量了,就是单纯的自己设的对吧
[quote=引用 4 楼 qq_42387829 的回复:] 兄弟那个i是什么意思呀
兄弟那个i是什么意思呀
[quote=引用 1 楼 zhouchao6的回复:]#!/bin/bash DIR=/***/***/wang cd $DIR rename .txt .pub *.txt DIR就是你的目录的绝对路径,替换就好了
for i in {1..5} do mv $i.txt $i.pub done
#!/bin/bash DIR=/***/***/wang cd $DIR rename .txt .pub *.txt DIR就是你的目录的绝对路径,替换就好了
4,436
社区成员
17,460
社区内容
加载中
试试用AI创作助手写篇文章吧