vincegeratorix

retroceder archivos

Dec 25th, 2013
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.20 KB | None | 0 0
  1. #!/bin/bash
  2. IFS=$'\x0A'$'\x0D'
  3. salida=$(ls -F | grep /)
  4. for carpetai in $salida
  5. do
  6.     cd $carpetai
  7.     find -regextype posix-egrep -regex ".*(mp4|srt)$" |xargs -I{lecciones} mv "{lecciones}" .
  8.     cd ..
  9. done
Advertisement
Add Comment
Please, Sign In to add comment