Passing backslash character to awk variable

view story

http://www.unix.com – Hi All. I have a file that contains some special characters and I'm trying to use AWK to search for lines between <pattern1> and <pattern2>. As an example: I need the lines between the line containing ' select_id="x_0 ' and the line containing the next instance of ' from '. This is a file called 'x.txt': Code: blah set $a x_0 $b blah ( q_db_task=1000, select_id="x_0", text=" select ", blah=rec ( table="green", text="min(blue)", text="max(brown)", text="sum(green.PURPLE)" text="sum(green.BLACK)", text (HowTos)