Bash - rinomina.sh


/ Published in: Bash
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.