I have an Input file which has a series of lines(which could vary) followed by two blank lines and then another series of lines(Could be any number of lines) followed by two blank lines and then repeats. I need to use filters to convert the following input file(which is an example) to an output file as shown below. The output should be - first three lines separated by a comma character or "|" character and then the rest of lines should be appended as shown below in the output.
Input file:
Output :
Appreciate your time and interest. Thank you,
BikerBoy
Input file:
Code:
a
b
c
d
e
f
p
q
r
s
t
u
v
w
x
Output :
Code:
a|b|c|d
a|b|c|e
a|b|c|f
p|q|r|s
p|q|r|t
p|q|r|u
p|q|r|v
p|q|r|w
p|q|r|x
BikerBoy