Created
May 18, 2018 14:21
-
-
Save scanbix/5775fde2780eac88e343adbef0b634a2 to your computer and use it in GitHub Desktop.
Bash. Check if file exists wildcard only
This file contains 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
if [[ -e $PMSourceFileDir\Clients\MyCompany\*fileName.txt ]] | |
then | |
echo "File exist" | |
return 0 | |
else | |
echo "File not found" | |
return 1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment