Created
March 22, 2022 10:05
-
-
Save plavjanik/566e865d6156c22651d62f83fe07ac76 to your computer and use it in GitHub Desktop.
Example of simple Bash script with Zowe CLI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -ex | |
| # Obtain the list of data sets: | |
| dslist=$(zowe zos-files list data-set "MY.PROJECT.DS*") | |
| # Delete each data set in the list: | |
| IFS=$'\n' | |
| for ds in $dslist | |
| do | |
| echo "Deleting Temporary Project Dataset: $ds" | |
| zowe files delete ds "$ds" -f | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment