CHRIST MCA 2009-2012
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Prog 1 Write a shell script to find the length of the accepted string

Go down

Prog 1 Write a shell script to find the length of the accepted string  Empty Prog 1 Write a shell script to find the length of the accepted string

Post  rakesh Tue Jul 20, 2010 11:07 pm

echo -n "Enter a string : "
read string

LEN=$(echo ${#string})


tried and tested code Smile
works very fine

rakesh
Admin

Posts : 3
Join date : 2010-07-20
Age : 36

https://mca2012.board-directory.net

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum