Tag Archives for Basics in Shell Programming

Number of Characters in a String

# Program to count number of occurance of a character in a string echo "Enter String" read string echo "Enter Character" read char count=0 i=1 len=`expr length $string` echo "String Length : $len" while [ $i -le $len ] do … Continue reading

01. June 2009 by Jishnu
Categories: Shell Scripting | Tags: , , | Leave a comment

← Older posts

Newer posts →