Exp.No.6b – CHARACTER CLASSIFICATION
Coding
#Shell Program to classify char from Command Line char=$1
case "$char" in
[0-9] ) echo digit;;
[A-Z] ) echo Letter;;
? ) echo special letter;;
* ) echo enter
a single character in command line;;
esac
No comments:
Post a Comment