← 返回命令列表

Linux one-liner

批量重命名文件

文件

for f in *.txt; do mv "$f" "${f%.txt}.bak"; done

复制后可按需替换文件名、目录或参数。