Skip to main content
3 of 7
deleted 572 characters in body; edited title
jevan
  • 41
  • 1
  • 5

Need to find a string and want to print only the line above it.... How to do it suggest me guys

I need to find a string and need to print the line above it.

ie) consider a file containing

$cat > para
returns between the paragaraphs
italic or bold    
quotes by placing
italic

Here i need to find for italic, and i need to get the output as below

returns between the paragaraphs
quotes by placing

How can i get the output like this??? Please help me on this guys...

jevan
  • 41
  • 1
  • 5