UNIX in my simple view
This is what I learned in UNIX
Monday, March 22, 2010
count the number of characters
To count the number of characters contained in a variable string, use ${#varname}.
echo num of chars in stringvar is ${#stringvar}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment