Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P8262
(An Untitled Masterwork)
Active
Public
Actions
Authored by
Dzahn
on Mar 25 2019, 2:11 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Referenced Files
F28464233: raw.txt
Mar 25 2019, 2:11 PM
2019-03-25 14:11:37 (UTC+0)
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
Event Timeline
Dzahn
created this paste.
Mar 25 2019, 2:11 PM
2019-03-25 14:11:37 (UTC+0)
Log In to Comment