#!/bin/sh #Delete both the binary (.log) and text (.out) esp logs #for the current (or specified) mode #Any -option flags are passed to rm. #Defaults to -i if none specified to prompt for confirmation. : ${upload_top:=`echo ~ftp`} unset opts mode=$ESPmode for arg do case $arg in -*) opts="$opts $arg" ;; *) mode=$arg ;; esac done rm ${opts--i} "$upload_top/$USER/$mode.out" "/var/log/$USER/$mode.log"