help for concatenate 2 files
"MOKRANI Rachid" <[email protected]>
| Newsgroups | gmane.editors.sed.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, I don't know how to concatenate two files with row. The first file is : cat /tmp/file1 bug_id ; creation_ts ; bug_severity 8 ; 2013-03-21 ; N/A 9 ; 2013-03-21 ; Mineur 10 ; 2013-03-21 ; Mineur 11 ; 2013-03-21 ; Mineur 12 ; 2013-03-25 ; N/A 13 ; 2013-03-25 ; N/A The second file is : cat /tmp/file2 bug_id ; bug_when ; added 9 ; 2013-03-21 15:49:44 ; CONFIRME 10 ; 2013-03-21 15:04:56 ; CONFIRME 11 ; 2013-03-21 15:56:59 ; CONFIRME 12 ; 2013-03-25 17:09:09 ; CONFIRME I don't know how to obtain the following result . bug_id ; creation_ts ; bug_severity ; bug_when ; added ; 8 ; 2013-03-21 ; N/A ; ; ; 9 ; 2013-03-21 ; Mineur ; 2013-03-21 15:49:44 ; CONFIRME ; 10 ; 2013-03-21 ; Mineur ; 2013-03-21 15:04:56 ; CONFIRME ; 11 ; 2013-03-21 ; Mineur ; 2013-03-21 15:56:59 ; CONFIRME ; 12 ; 2013-03-25 ; N/A ; 2013-03-25 17:09:09 ; CONFIRME ; 13 ; 2013-03-25 ; N/A ; ; ; OR the following bug_id ; creation_ts ; bug_severity ; bug_when ; added ; 8 ; 2013-03-21 ; N/A ; TEST ; TEST ; 9 ; 2013-03-21 ; Mineur ; 2013-03-21 15:49:44 ; CONFIRME ; 10 ; 2013-03-21 ; Mineur ; 2013-03-21 15:04:56 ; CONFIRME ; 11 ; 2013-03-21 ; Mineur ; 2013-03-21 15:56:59 ; CONFIRME ; 12 ; 2013-03-25 ; N/A ; 2013-03-25 17:09:09 ; CONFIRME ; 13 ; 2013-03-25 ; N/A ; TEST ; TEST ; Any help will be really appreciate. Best regards. __________________________ Avant d'imprimer, pensez à l'environnement ! Please consider the environment before printing ! Ce message et toutes ses pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation non conforme à sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse. IFP Energies nouvelles décline toute responsabilité au titre de ce message. This message and any attachments are confidential and intended solely for the addressees. Any unauthorised use or dissemination is prohibited. IFP Energies nouvelles should not be liable for this message. __________________________