between two paterns
What are the 2 patterns ?
What is the meaning of target, desired output ?
Assuming that patterns are STORAGE and TABLESPACE, that the word between in the above quote is meaningless and that target is the expected result, try something like this:
sed -e 's!STORAGE!!g;s!TABLESPACE!!g' /path/to/inputfile
Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.