$ cat>caseexa.sh
#! /bin/sh
echo “Enter a command (who or 1s)”
read command
case “$command” in
who)
echo “Running who….”
who
; ;
1s)
echo “Running 1s….”
1s
; ;
*)
echo “Bad command”
; ;
esac
exit 0
All the material for Btech degree at one place. In this site one can get all the study material for your btech degree. All the important notes, codes, assignmemts have been peovided to the aspirants. This portal can help you a lot in sharpening of your concepts. So, be updated and we'll catch you through e-mail, so be sure to join the site and get the latest updates in the field of engineering. All the best for your engineering career.
$ cat>caseexa.sh
#! /bin/sh
echo “Enter a command (who or 1s)”
read command
case “$command” in
who)
echo “Running who….”
who
; ;
1s)
echo “Running 1s….”
1s
; ;
*)
echo “Bad command”
; ;
esac
exit 0
0 comments:
Post a Comment