[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1418
  • Last Modified:

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?
0
ANISHKA1
Asked:
ANISHKA1
2 Solutions
 
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

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now