I need to find a string and need to print the line above it.case1: The same line won't have the more than one matching patternie) consider a file containing$cat > parareturns between the paragaraphsitalic or bold    quotes by placingitalicHere i need to find for italic, and i need to get the output as belowreturns between the paragaraphsquotes by placingHow can i get the output like this?
Find each line matching a pattern but print only the line above it
text processing;awk;sed;grep