compare to conditons in while statement
this could be simple but yet i need help as different combination of comapring two conditons with while and if didnt work for me in shell
say i need to compare $hash == '------' or $ hash = 0 how can i do it with IF and WHILE in bash... eg if [$hash = '-----' ] or [$hash= 0] then .............. else .................. fi while [$hash='-------' ] or [$hash = 0 ] do ................... done thanks |
Code:
if [ $hash = "------" -o $hash = "0" ] |
All times are GMT -5. The time now is 05:57 AM. |