#!/bin/bash
#Program:
# This program shows "Hello World!" in your screen.
#History
# 2015/12/09
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
echo "This program will print your selection !"
#read -p "Input your choice : " choice
#case $choice in
case $1 in
"one")
echo "Your choice is One"
;;
"two")
echo "Your choice is Two"
;;
"three")
echo "Your choice is Three"
;;
*)
echo "Usage $0 {one|two|three}"
;;
esac
Shell编程之case_demo
最新推荐文章于 2024-07-15 15:20:27 发布