Skip to content

Instantly share code, notes, and snippets.

@dawu76
Created June 11, 2024 04:40
Show Gist options
  • Save dawu76/6af5266f63766d35be1abc8f3d414ce9 to your computer and use it in GitHub Desktop.
Save dawu76/6af5266f63766d35be1abc8f3d414ce9 to your computer and use it in GitHub Desktop.
shell case example
#!/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