Skip to content

Instantly share code, notes, and snippets.

@scanbix
Created May 18, 2018 14:21
Show Gist options
  • Save scanbix/5775fde2780eac88e343adbef0b634a2 to your computer and use it in GitHub Desktop.
Save scanbix/5775fde2780eac88e343adbef0b634a2 to your computer and use it in GitHub Desktop.
Bash. Check if file exists wildcard only
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