Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash get last character of string

echo "${str: -1}"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #bash #character #string
ADD COMMENT
Topic
Name
5+1 =