|
| From: | Michael Williams |
| Subject: | -d option not working. . .? |
| Date: | Tue, 11 Sep 2007 21:51:59 -0400 |
Hi All,I've got a script that I'm trying to set up, but it keeps telling me that "[-d command not found". Can someone please explain what is wrong with this?:
#!/bin/sh
for i in $*
do
{
if [-d $i]
then
echo "$i is a directory! Yay!"
else
echo "$i is not a directory!"
fi
}
done
Regards,
Michael
| [Prev in Thread] | Current Thread | [Next in Thread] |