Remove Linux shell script stuck

view full story

http://unix.stackexchange.com – This script should remove the contents of the dustbin directory. If the -a option is used the script should remove all files from the dustbin. Otherwise, the script should display the filenames in the dustbin one by one and ask the user for confirmation that they should be deleted. if test ! -f ~/TAM/dustbin/* then echo "this directory is empty" else for resfile in ~/TAM/dustbin/* do if test -f $resfile ; then echo "Do you want to delete $resfile" echo "Y/N" read ans if test $ans = Y ; then rm $resfile echo "File $resfile was deleted" (HowTos)