linux 批量修改文件名



find *.csv | awk -F '.csv' '{print $1}' | xargs -i{} mv -n {}.csv {}'-golden'.csv


ls a.sh | xargs -i cp {} {}.bak


for i in *.txt;do mv $i $(sed "s/a/-/" <<<$i);done


你可能感兴趣的:(linux)