Hello masters.
I have a rather simple problem but its been killing me. I have a file "x" with only 1 line inside it. The line looks something like
Quote:
{"01"|"15131"|"2506"|""}{"01"|"15651"|"2506"|""}{"01"|"20831"|"2506"|""}{"01"|"24811"|"2506"|""}{"01 "|"24812"|"2506"|""}{"01"|"24813"|"2506"|""}{"01"|"1
"}{"01"|"15032"|"2506"|""}{"01"|"9112"|"2506"|""}{"01"|"9023"|"2506"|""}{"01"|"9032"|"2506"|""}{"01" |"25137"|"2506"|""}{"01"|"25138"|"2506"|""}{"01"|"28430"|"
|"2053"|"12050"|"205"}{"01"|"2361"|"12050"|"236"}{"01"|"2362"|"12050"|"236"}{"01"|"2052"|"12050"|"20 5"}{"01"|"173"|"12050"|"17"}{"01"|"511"|"12050"|"51"}{"02"
|""}{"02"|"1422"|"2504"|""}{"02"|"1423"|"2504"|""}{"02"|"4746"|"2504"|""}{"02"|"4747"|"2504"|""}{"02 "|"4748"|"2504"|""}{"02"|"1461"|"2504"|""}{"02"|"1462"|"25
1463"|"2504"|""}{"02"|"1431"|"2504"|""}{"02"|"1432"|"2504"|""}{"02"|"1433"|"2504"|""}{"03"|"48441"|" 4500"|""}
|
Now this is only part of the line. Its actually about 4000 characters. What i need to do is whenever there is a "}", i need to append the next characters into a new line. Ive tried cracking my head with
sed but cant find the correct command. Pls help. I need something that will look like
01|15131|2506
01|15651|2506
01|20831|2506
01|24811|2506
Pls HELP !
Thanks.
Sara