📌  相关文章
📜  批量重命名文件夹和修剪空格并添加前缀后缀 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:21.308000             🧑  作者: Mango

代码示例1
# Rename all files & add prefix
for filename in *.jpg; do mv "$filename" "prefix_$filename"; done;
# Rename all forders & remove space & add suffix
for filename in ./*;do mv "$filename" "$(echo $filename|sed 's/ /_/g')"_JRTV; done;