Thursday, May 31, 2012

Finding the string length in scripting

Here are three scripts for finding the length of string using scripting

1. Using bash string operation



2. Using grep



3. Using wc



Save them and give them execute permission e.g.

Execute it



Thus giving the correct length of the input string.

0 comments:

Post a Comment

:) :)) ;(( :-) =)) ;( ;-( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ $-) (b) (f) x-) (k) (h) (c) cheer
Click to see the code!
To insert emoticon you must added at least one space before the code.