Advertisement
Guest User

Untitled

a guest
Sep 6th, 2011
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #!/user/bin/bash
  2.  
  3.  
  4. cd /home/smok/Música/web/
  5. echo -n "Nombre del listado: \t"
  6. read ENTRADA
  7. echo "Se generara la lista con el nombre: $ENTRADA"
  8. ls >> sucio.txt
  9.  
  10.  
  11. i=0
  12. while read line
  13. do i=$(($i+1));
  14. echo $i $line
  15. done < "/home/smok/Música/web/sucio.txt"
  16. echo "Canciones totales: $i";
  17.  
  18.  
  19. rm sucio.txt
  20. ~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement