#!/bin/rc switch($1){ case -d for(i in `{ls *.flv|sed 10q}) rm $i case * for(i in `{ls *.flv|sed 10q}) mplayer $i }