I am reading the multiple clob data records from DB into file in UNIX using the shell scrpiting.
CLOB1:-
COUNTRY
AUSTR
CLOB2:-
ALIA
WON THE
CLOB3:-
WORLCUP
THRICE
Query fetched the clob like as below. When word is continued in next clob there is a single new line character(ex: between clob1 ending and clob2 starting) . When the word is not continued in the next clob there are 2 new line characters(ex:- between clob2 ending and clob3 starting).
Actual output after fetching the data from clob using select statement:-
COUNTRY
AUST
ALIA
WON THE
WORLCUP
THRICE
I want to modify the output file as per the below format. Can someone help me in this ?
COUNTRY
AUSTRALIA
WON THE
WORLDCUP
THRICE