a*******e 发帖数: 3021 | 1 how to change all the file/dir names from Captical letters to low in one dir?
thx |
t*****g 发帖数: 1275 | 2 for i in `ls ./`; do t=`echo $i | tr '[A-Z]' '[a-z]'`; eval "mv $i $t"; done
dir?
【在 a*******e 的大作中提到】 : how to change all the file/dir names from Captical letters to low in one dir? : thx
|
a*******e 发帖数: 3021 | 3 got it, haha
much easier, convm --lower ***, haha
done
【在 t*****g 的大作中提到】 : for i in `ls ./`; do t=`echo $i | tr '[A-Z]' '[a-z]'`; eval "mv $i $t"; done : : dir?
|
x**m 发帖数: 941 | 4 Does it still work if there is a file named 'a' and a folder already named '
A'? |