Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Append (>>) following to end of each script tracked.
- whoami>> $SAVE_FILE # User invoking the script.
- echo $0>> $SAVE_FILE # Script name.
- date>> $SAVE_FILE # Date and time.
- echo>> $SAVE_FILE # Blank line as seperator
- # Of course, SAVE_FILE must be defined and exported as environmental variable in ~/.bashrc or ~/.zshrc etc..
- #+ (something like ~/.scripts-run)
- ####
- # TRACKED_SCRIPT
- ####
- FILES="/media/v1ral/XVIDS/* /home/v1ral/xvids/*"
- for f in $FILES
- do
- if [ -f ${f}.mp4 ]
- then
- echo "Adding $f File!"
- continue
- fi
- # START
- mpv --shuffle $f
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement