Write a shell script to find length of string

code:


echo “enter the string”
read a
expr length $a


output:

$ bash find.sh
enter the string
hello
5

Post a Comment

If you have any doubts, Please let me know
Thanks!

Previous Post Next Post