#!/bin/bash
for breed
do
case $breed in
arabian|palomino|clydesda)
echo "$breed is a horse";;
jersey|guernsey|holstein)
echo "$breed is a cow";;
huskey|shepherd|setter|labrador)
echo "$breed is a dog";;
siamese|persian|angora)
echo "$breed is a cat";;
*) echo "$breed is not in our catalog";;
esac
done
Penggunaan For di Bash Shell
00.28 |
Label:
Pemrograman Shell