awk - How to cat or echo everything between two words in a file -


How to cat or echo in a file between two words?

Example <<> <<>

Class = "post-text" itemprop = "text">

This can work for you (GNU sed):

  sed -n '/ ^ instance /, / ^ end / {// D; P} 'file   

or as stated by Glenn:

  sed -n' / ^ instance /, / ^ end / {/! p} 'file    

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

c# - passing input text from view to contoller with FacebookContext using Facebook app -

Calling a C++ function from C# by passing a string with variable size to it -