Search Results

Search: Posts Made By: jlliagre
24,999
Posted By jlliagre
case $string in (test*) echo "starts with...
case $string in
(test*)
echo "starts with test";;
(*test)
echo "ends with test";;
(*test*)
echo "contains test";;
(*)
echo "doesn't match";;
esac
24,999
Posted By jlliagre
"if" isn't the best choice for that, I would use...
"if" isn't the best choice for that, I would use "case/esac" for the same. By the way, you mean "whether", not "weather".
Showing results 1 to 2 of 2

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