When i run this command it still outputs the same message when nothing is in the waste bin directory, how could I get the command to output a different message when there are no files in the bin?
#! /bin/bash #! listwaste - Lists the names of all the files in your waste bin and their size #! Daniel Foster 23-11-2015 echo "The files that are in the waste bin are:" ls -1 ~/bin/.waste/
I know this should be simple but I'm just starting out and I am guessing i should be using an if statement or something similar.
Thanks for the help in advance.