Hello All,
Is it possible to enter multiple option in one feild for which same action is needed ?
If you see below code, i have three state a, b and c for which i need same set of command execution. So is it possible to enter them in same feild ? Please suggest.
Code:
while read state; do
case $state in
X) <commands for this match> ;;
Y) <commands for this match> ;;
a, b, c) <commands for this match> ;;
d) <commands for this match> ;;
esac
done <inputfile.txt