What does the slash do in 'case $1/$2' in shell script (/bin/sh)
3
votes
1
answer
2667
views
Found this example on the arch wiki
#!/bin/sh
case $1/$2 in
pre/*)
echo "Going to $2..."
;;
post/*)
echo "Waking up from $2..."
;;
esac
and can't make out if it's a logical operator or something else.
Asked by James Langham
(33 rep)
Dec 22, 2018, 04:22 PM
Last activity: Dec 22, 2018, 05:45 PM
Last activity: Dec 22, 2018, 05:45 PM