What command can be used to check if a directory exists or not, within a Bash shell script?
I want to execute mongo commands in shell script, e.g. in a script test.sh: #!/bin/sh mongo myDbName db.mycol