how to check directory exist or not
I am checking whether directory exist or not using shell script following way
if ! [ -d ./images ]
then
mv ./Images ./images
fi
In Linux, it works successfully.
But it fails in Solaris and gives "!: not found" error . How can I overcome this.
Please help
ThanQ,
Nagendra
|