i have a file as below and i need to load it into oracle. The problem is, some of the rows are in 2 lines.
123456_PosWlist ----- ----- IN 0/0
123456_PosWListRpt ----- ----- IN 0/0
123456_PosWListCSV
----- ----- IN 0/0
123456_PosWlist_S1CSVBox ----- ----- IN 0/0
123456_PosWList_S1CSV ----- ----- IN 0/0
123456_PosWList_S1PubCSV ----- ----- IN 0/0
for example,
123456_PosWListCSV
is not continues... after name all other information are in next line...
Can someone help me on how to concanate this 2 rows... I have nearly 500 rows in the file out of it 50 rows have this problem...
bash-2.03$ more aaa.txt
35111_RetrievalAppendXmitTrig
----- ----- OI 0/0
bash-2.03$ awk 'NF==1 {p=$0;next} {$0=p$0;print;p=""}' aaa.txt
awk: can't set $0
record number 2