skrypt bash Uzyskaj ostatnią pozycję znaku w ciągu

last_dash=${str##*-} #finds the dash (-)
Brian Patterson