Shell Script - (File and Directory)

view story

http://www.unix.com – 1. The problem statement, all variables and given/known data: My problem is that when I made up a non-existing directory, it prints out "hiii". It didn't enter the first if statement. It works if my directory exist. 2. Relevant notes: The question is here: http://farm9.staticflickr.com/8065/8...54e64904_b.jpg 3. The attempts at a solution (include all code and scripts): Shell Script - (file and directory) My Work: Code: for fileOrDirectory in $*    ## I'm not sure if I should use $* do # (HowTos)