Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

linux pipe string contains

[[ $string == *foo* ]] && echo "It's there" || echo "Couldn't find"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #linux #pipe #string
ADD COMMENT
Topic
Name
3+9 =