Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- shopt -s extglob
- for f in !(*.mpg);
- do echo "start processing \"$f\" at \"$(date)\"" > log.txt ;
- done
- do avconv -i "$f" -r 24 "${f%.*}.mpg" &&
- rm "$f" &&
- done
- for f in *.mpg;
- do mkdir "${f%.mpg}" &&
- mv "$f" "${f%.mpg}";
- done
- echo "ended at \"$(date)\"" > log.txt;
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement