w********i 发帖数: 5 | 1 like
xxx *.dat *.txt // try to mv all files with .dat to files with .txt.
if no built-in command, I have to write one for myself. | w*****n 发帖数: 94 | 2 for f in *.dat; do mv $f `echo $f|sed s/dat$/txt/`; done
【在 w********i 的大作中提到】 : like : xxx *.dat *.txt // try to mv all files with .dat to files with .txt. : if no built-in command, I have to write one for myself.
|
|