How do you truncate a string everything before/after a certain character, including the character? The number of characters on either the right or left side of the character varies.
shfdiuf/lsdfsjfij truncate everything to the right or left of the / character
return:
shfdiuf truncate everything to the right
lsdfsjfij truncate everything to the left
shfdiuf%lsdfsjfij truncate everything to the right or left of the % character
return:
shfdiuf truncate everything to the right
lsdfsjfij truncate everything to the left