[原]shell批量文件增刪改先後綴

改後綴io

for files in `ls *`; do mv ${files} ${files}.bak; donesed

改後綴file

rename .bak .bak2 *di

去除後綴co

for files in `ls *`; do mv $files `echo $files |sed 's/\.bak//'`; donedisplay

相關文章
相關標籤/搜索