3

bash directory

view full story
linux-howto

http://www.linuxquestions.org – Hey Guys! I am trying to figure out how to make my while loop determine if the parameter typed in is a directory, my loop looks like this, but for some reason, every time i run ./myscript /etc or any other directory, it does not recognize it as a directory, hope you can help, bmt # make_page - A script to mimic the tree command while [ "$1" != "" ]; do case $1 in -d | $DIRECTORY ) shift my_tree ;; -h | --help ) helpmedog exit ;; * ) psyke exit 1 esac shift done (HowTos)