#Take this script:
#!/bin/bash
# This little shell script plays playlists, one entry at a time.
test ! -f "$1" && echo "we need an argument, sorry." && exit
function update_playlist(){
EXITING='echo "This was the final episode; deleting playlist pointer."; exit'
INDEX=`cat $1`
(( $INDEX < $2 )) && (echo `dc -e "$INDEX 1 + f"` > "$1") || (rm "$1
(
Read more... )