Searching for string betweeen two different strings

view full story

http://www.unix.com – I want to the following results using unix script, can some one help ? Thanks Input: select col1, col2 from tab1 where ......... select col1,.....,coln from tab2, tab3 where.... select clo1,clo2,col3 from tab4 where... output (results) tab1 tab2 tab3 tab4 basically I need the list of table names from list of select statements in a file. Thank You, (HowTos)