Remove a character from the end of a variable December 2, 2022 by Tarik Use target=${1%/} A reference.