Created
June 11, 2024 04:40
-
-
Save dawu76/6af5266f63766d35be1abc8f3d414ce9 to your computer and use it in GitHub Desktop.
shell case example
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
#!/usr/bin/env bash | |
FILE="/some/dir/to/file-01.sql"; | |
echo $FILE; | |
case "${FILE}" in | |
**/file-01.sql \ | |
| **/file-02.sql \ | |
| **/file-03.sql) | |
echo "matched one of the files!" | |
;; | |
*) | |
echo "did not match any files" | |
;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment