Ok, so I need a sed or awk solution please..
Format of the files I am working with..
server235
,Pin=ALL_LOCAL_DRIVES
server236
,Pin=C:\,E:\
......skip a few.
server1000
,Pin=G:\,Z:\
So I have the data beaten this far into shape, but I can not get the two lines merged.. I am stuck in Windows, and using ported commands.. the pain!
I have tried various forms of appending next line, and appending previous line based on various searches..
I just need to read the above data, and have this output, and its kicking my arse.
server235,Pin=ALL_LOCAL_DRIVES
server236,Pin=C:\,E:\
server1000,Pin=G:\,Z:\
I can easily add text to the begenning/end of the server line to allow searching, and the , is always at the begenning of the following line... There is never a 3rd line, just the server name, and the Pin= bits..
Thanks for ANY help..
Format of the files I am working with..
server235
,Pin=ALL_LOCAL_DRIVES
server236
,Pin=C:\,E:\
......skip a few.
server1000
,Pin=G:\,Z:\
So I have the data beaten this far into shape, but I can not get the two lines merged.. I am stuck in Windows, and using ported commands.. the pain!
I have tried various forms of appending next line, and appending previous line based on various searches..
I just need to read the above data, and have this output, and its kicking my arse.
server235,Pin=ALL_LOCAL_DRIVES
server236,Pin=C:\,E:\
server1000,Pin=G:\,Z:\
I can easily add text to the begenning/end of the server line to allow searching, and the , is always at the begenning of the following line... There is never a 3rd line, just the server name, and the Pin= bits..
Thanks for ANY help..