# ls
file1 file2 file3
hala mikham be har 3 ta extension e ".rm" ezafe konam :
# for F in $(ls);do mv $F $F.rm;done
# ls
file1.rm file2.rm file3.rm
ba'd mikham extension e har 3 ta ro az ".rm" be ".mp3" taghiir bedam :
# for F in $(ls);do mv $F $(echo $F|sed -e 's,\.rm,,').mp3 ;done
# ls
file1.mp3 file2.mp3 file3.mp3
va belakhare mikham ke extension e har 3 ta ro hazf konam :
# for F in $(ls);do mv $F $(echo $F|sed -e 's,\.mp3,,') ;done
# ls
file1 file2 file3
hamin .... :">
No comments:
Post a Comment