Page MenuHomePhabricator
Authored By
Dzahn
Mar 25 2019, 2:11 PM
Size
386 B
Referenced Files
None
Subscribers
None
#!/bin/bash
host=labsdb1011
case $host in \
labsdb10[10-12])
echo "labsdb10[10-12] matches";;
*)
echo "nope - no match for labsdb10[10-12] because it's shell globbing"
esac
case $host in \
labsdb101[0-2])
echo "labsdb101[0-2] matches";;
*)
echo "nope"
esac
---
nope - no match for labsdb10[10-12] because it's shell globbing
labsdb101[0-2] matches

File Metadata

Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
7220336
Default Alt Text
raw.txt (386 B)

Event Timeline