发新话题
打印

改文件扩展名

改文件扩展名

#name:rn
#!/bin/bash

for old in *.$1
do
mv $old `basename $old .$1`.$2
done

用法:
rn jpg JPG ;把该目录的*.jpg改为*.JPG

TOP

发新话题