27. Unix Tutorial - Shell Programming - Until and Select and Nested loop Conditions

preview_player
Показать описание
This tutorial on Unix programming provides detailed information on Until and Select loop.

Рекомендации по теме
Комментарии
Автор

hello Sandip - I tried running your code but I encountered this errror - syntax error - select not found.this is what i wrote in my vm -
#!/bin/bash
select DRINK in "Coffee" "Tea" "Water" "Juice" "None"
do
case $DRINK in
Coffee|Tea|Water)
echo "Drink available."
;;
Juice)
echo "Drink is not available."
;;
None)
break
;;
*)
echo "ERROR-INVALID OPTION"
esac
done

rajcodes