select * from emp;select * from dept;selectionend;I want to obtain this output:select * from emp;select * from dept;I tried by using:awk '/select/{a=1} a; /;/{a=0}' XXARXADLMT.txt Output:select * from emp;select * from dept;selectionend;
How to filter the table names from .txt file
shell;text processing;awk