#!/bin/bashwhiletruedoecho"Use one of the following options
P:To display current directory
S:To display the name of running file
D:To display today's date and present time(如:2017-04-26 05:45:12)
L:To see the list of files in your present working directory
W:To see who is logged in
I:To see the ip address of this local machine
Q:To quit this program
Enter your option and hit:"readincase$inin
P|p)pwd;;
S|s)echo$0;;
D|d)date"+%Y-%m-%d %H:%M:%S";;
L|l)ls;;
W|w) w ;;
I|i)ipadd;;
Q|q)break;;
*)echo"!!!!!illegal input!!!!!!!!"esacdone