Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

strstr bash

strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}
Source by www.shellscript.sh #
 
PREVIOUS NEXT
Tagged: #strstr #bash
ADD COMMENT
Topic
Name
3+3 =