I have a plain test file with a delimeter '[|]'. In this file some lines are broken into two. The first part of these broken line will have 6 columns and the second part will have 4. These broken lines will be consicutive.
I want to join the two consicutive lines which are having 6 fields and 4 fields respectively. A perfect line will have 12 fields and each perfect line will end with '{}' even the second half of the broken line will have the '{}'
Also when i redirect the file the file with the below command
"perl -0lne 's/\n//g;print "$1\n" while /(.*?{})/g' inputfile>abc.txt"
it creates a binary file. When i do a head on this file it is displaying the file correctly , but in vi I can see a '^@' charecter on each line from the second line. any reason for this..