remove_trailing_slash() {
  echo "$1" | sed -r 's:/$::'
}

convert_slashes() {
  echo "$1" | sed -r 's:/:\!:g'
}
