Input file is like this :
21-MAI-05|CR1-1ER|DEJEUNER|CAROTTES PERSILLES|SALE|1 PART|PREPARATION CHAUD|6
21-MAI-05|CR1-1ER|DINER|CELERI REMOULADE|SALE|1 PART|LABORATOIRE FROID|25
21-MAI-05|CR1-1ER|DEJEUNER|CELERI REMOULADE MIXE|SALE|1 PART|LABORATOIRE FROID|8
21-MAI-05|CR1-1ER|DEJEUNER|COMPOTE DE POIRE SUCRE|MODE UNIQUE|1 PART|MAGASIN|7
21-MAI-05|CR1-1ER|DEJEUNER|CONCOMBRE VINAIGRETTE|SALE|1 PART|LABORATOIRE FROID|1
21-MAI-05|CR1-1ER|DEJEUNER|FAISSELLE NATURE|SANS SUCRE|1 PART|BEURRE OEUF FROMAG
E|2
I need output file like the following :
21-MAI-05 21-MAI-05 21-MAI-05 21-AI-05
CR1-1ER CR1-1ER CR1-1ER CR1-ER
DEJEUNER DINER DEJEUNER DEJEUNER
CAROTTES PERSILLES CELERI REMOULADE COMPOTE DE P COMPOTE
SALE SALE SALE
PREPARATION CHAUD LABORATOIRE FROID LABORATOIRE FROID
6 25 8
21-MAI-05 21-MAI-05
CR1-1ER CR1-1ER
DEJEUNER DEJEUNER
CONCOMBRE VINAIGR FAISELLE NATURE
SALE SANS SUCRE
LABORATOIRE FROID BEURRE OEUF FROMAGE
1 2
I have nearly 1500 lines in my file. It also depends and can change any time But the file format is the same.
I need help to create a script using awk.
Thanks in advance
Maguy