d
Amit DhamuSoftware Engineer
 

Search Occurrences In Between Two Strings

1 minute read 00000 views
# Search between two XML nodessed -n 's/.*<email-address>\(.*\)<\/email-address>.*/\1/p' file.xml

# Search between two strings (START and END)sed -n 's/.*START\(.*\)END.*/\1/p' file.txt