DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
4+2 =
Submit