Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash script get last position of character in string

last_dash=${str##*-} #finds the dash (-)
Source by www.unix.com #
 
PREVIOUS NEXT
Tagged: #bash #script #position #character #string
ADD COMMENT
Topic
Name
4+2 =