script to read each line from the SQL file and output table name or column name