Posted By

whitetiger on 11/09/06


Tagged

Shell Bash unix linux files perl wget


Versions (?)

Bash - rinomina.sh


 / Published in: Bash
 

  1. #!/bin/sh
  2.  
  3. #
  4. # rinomina i file di una cartella
  5. #
  6.  
  7. for I in `ls *.wmv|tr " " "_"`
  8. do
  9. mv "$(echo $I|tr "_" " ")" "$(echo $(basename $I .wmv) | tr "_" " ").asf"
  10. done

Report this snippet  

You need to login to post a comment.