Answers for "search for substring"

0

search for substring

# You can do it in two ways
# 1) Let "grep" read on its standard input

echo "$line" | grep -o select

# 2) tell "grep" here is the string

grep select <<< "$line"
Posted by: Guest on April-20-2022

Code answers related to "search for substring"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language