Linux tips and tricks
Wednesday, April 30, 2014
Bash - String Lenght
Getting string length in Bash Script is very easy by using # operator:
$ some_variable="This is Test String"
$ echo ${#some_variable}
19
${#variable_name} gives us string length.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment