Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash check if string ends with slash

Just appreciate solution using "*/" regex for string ending with slash:
if[[ "string_ending_with_slash/" == */ ]]; then ...//some code
 
PREVIOUS NEXT
Tagged: #bash #check #string #ends #slash
ADD COMMENT
Topic
Name
7+3 =