WASS to accept a string from the user and display number of vowels
Page 1 of 1
WASS to accept a string from the user and display number of vowels
clear
echo "enter file name"
read file
initcount=`cat $file | wc -c`
echo "initcount is $initcount"
#del aeiou
fincount=`cat empty | tr -d [aeiou] |wc -c`
echo finalcount is $fincount
echo total aeiou count is `expr $initcount - $fincount`
echo "enter file name"
read file
initcount=`cat $file | wc -c`
echo "initcount is $initcount"
#del aeiou
fincount=`cat empty | tr -d [aeiou] |wc -c`
echo finalcount is $fincount
echo total aeiou count is `expr $initcount - $fincount`
Similar topics
» Prog31. WASS to accept a color name from the user and check whether its equal to BLACK , if so print message as accepted else display not accepted.
» Prog 17. WASS to accept a weekday ( 1 ,2 3 …7) from user using command line and print appropriate day in words ( Monday , Tuesday , Wednesday )
» 3. WASS to find the factorial of a number
» 8. WASS to accept 2 x and y , and find the XY ( x raised to the power y )
» 7. WASS to accept a file name and convert its content to uppercase
» Prog 17. WASS to accept a weekday ( 1 ,2 3 …7) from user using command line and print appropriate day in words ( Monday , Tuesday , Wednesday )
» 3. WASS to find the factorial of a number
» 8. WASS to accept 2 x and y , and find the XY ( x raised to the power y )
» 7. WASS to accept a file name and convert its content to uppercase
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum