What is mean by -d in shell script..?

What is mean by -d in shell script ..i have build script which is validating against dirextory..
and  doing like this
                    if[ -d $dir/$relnumber]
                        then

what is -d means here?
ANISHKA1Asked:
Who is Participating?
 
sunnycoderCommented:
Hello ANISHKA1,

-d means - is a directory

Regards,

sunnycoder
0
 
woolmilkporcCommented:
Hi,
look at 'man test' to see all operators and functions!
In your case, [ -d $dir/$relnumber] means - Check whether $dir/$relnumber exists and is a directory.
 
wmp
 


 
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.