Test if a directory exists in z/OS Unix System Services

  • Post category:Utilities
  • Reading time:1 min read

Snippet of shell script code to test if a directory exists in z/OS Unix System Services. #!/bin/sh DEST="/app/somedirectory" if test -d "$DEST" then # It is a directory # echo "Directory found ..." else # does not exist echo "Directory does not exist" fi