in reply to Re^2: between pattern search not working
in thread between pattern search not working

You are much more likely to get the answer that you seek if you follow the example of my previous reply. Provide a complete program (including data) so we all can run it and duplicate your problem. Show the output that it produces and the output that you want. Explain the difference. We do not care what indenting scheme you use, but please be consistent!
Bill
  • Comment on Re^3: between pattern search not working

Replies are listed 'Best First'.
Re^4: between pattern search not working
by Anonymous Monk on Jan 15, 2015 at 21:06 UTC
    @array1='TABLE1','TABLE2'
    file1 data : CREATE TABLE TEMP.TABLE1 : : : ------- CREATE TABLE TEMP.TABLE2 : : : -------
    file2 data : CREATE TABLE TEMP.TABLE1 : : : ------- CREATE TABLE TEMP.TABLE2 : : : -------
    No I want the script to go through the tables in array1 and then through the file1 and file2 and pruduce the output like
    FILE1 : CREATE TABLE TEMP.TABLE1 : : : ------- FILE2 : CREATE TABLE TEMP.TABLE1 : : : ------- FILE1 : CREATE TABLE TEMP.TABLE2 : : : ------- FILE2 : CREATE TABLE TEMP.TABLE2 : : : -------