BASH verifique si la cadena termina con barra
Just appreciate solution using "*/" regex for string ending with slash:
if[[ "string_ending_with_slash/" == */ ]]; then ...//some code
Armandres