Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re^2: Merging two files and changing format

by webby01 (Initiate)
on Oct 11, 2012 at 18:37 UTC ( #998512=note: print w/replies, xml ) Need Help??

in reply to Re: Merging two files and changing format
in thread Merging two files and changing format

i think the problem is that some entries are -- instead of, 'AA' for example in the case of missing data. Are there any modifications I can make to the code to remedy this? Thank you.

  • Comment on Re^2: Merging two files and changing format

Replies are listed 'Best First'.
Re^3: Merging two files and changing format
by choroba (Bishop) on Oct 12, 2012 at 07:29 UTC
    Please, show an example of a pair of lines that is not processed correctly.
    لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

      your code is printing extra blank lines between lines of good output

      sed -n '1, 5{=;p;}' test2


      M MitoA10045G 0 10045 A A A A...



      M MitoA10551G 0 10551 A A A A ...



      M MitoA11252G 0 11252 A A A A ...

        This does not happen when I test it. Please, provide a sample of the input files in <code> ... </code> tags.
        لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://998512]
[Corion]: marto: I'm not sure on how to treat mail archives. I think you could either set an auto-deletion timespan or an auto-anonymisation timespan if you wanted to do it right.
[Corion]: For PM, I think we'll create a user "gdpr", who gets assigned the nodes of users who want to give up their user status here.
[marto]: can I nominate users ? :P

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (12)
As of 2018-05-22 08:30 GMT
Find Nodes?
    Voting Booth?