Hi,
is this the correct and most concise syntax to match an argument to just two items?
if [ "$1" == "-[dD]" ]; then
ACTION
fi
I want a more concise version to the one below that's why i'm asking.
if [ "$1" == "-d" -o "$1" == "-D" ]; then
ACTION
fi
TIA,
Louie C.
is this the correct and most concise syntax to match an argument to just two items?
if [ "$1" == "-[dD]" ]; then
ACTION
fi
I want a more concise version to the one below that's why i'm asking.
if [ "$1" == "-d" -o "$1" == "-D" ]; then
ACTION
fi
TIA,
Louie C.