Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- test=$(mpc | grep -Eo '[0-9]+:[0-9][0-9]/' | sed 's|\([0-9].*\):\([0-9][0-9]\)/|\1\2|')
- if [ "$test" -ge 5 ]; then
- mpc seek 0
- else
- mpc prev
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement