Linux tips and tricks
Showing posts with label
length
.
Show all posts
Showing posts with label
length
.
Show all posts
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.
Older Posts
Home
Subscribe to:
Posts (Atom)