Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

grep get everything between two strings

echo "Here is a string" | grep -o -P '(?<=Here).*(?=string)'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #grep #strings
ADD COMMENT
Topic
Name
6+1 =