Search Results

Search: Posts Made By: fialia
15,187
Posted By fialia
Yes, that works. Thank you very much!
Yes, that works. Thank you very much!
15,187
Posted By fialia
Using variable in case statement
I want to do this:

Ex 1:
case $answer in
1|2|3|4|5) echo $answer;;
x) break;;
*) echo "Invalid selection. Try again.";;
esac

But I need the part "1|2|3|4|5" to be fetched from a...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 09:14 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy