https://www.zhihu.com/question/21294798/answer/62848985
写个bash,用 for循环mv文件. 比如改扩展名,把 .c 改成 .cpp
.c
.cpp
for f in *.c ; do mv "$f" "${f/c/cpp}" ; done