shell-script-pt
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [shell-script] Ajuda com Sed ou Tr


From: 빠는 Leonardo Goretti
Subject: Re: [shell-script] Ajuda com Sed ou Tr
Date: Mon, 30 Mar 2015 08:54:32 -0300



cat teste | sed "N;s/\n/ /" > teste.saida



Em 30 de março de 2015 08:28, Cyolfi Cyro address@hidden [shell-script] <address@hidden> escreveu:
 

Senhores, pesquisei mas não consegui elaborar a solução, tenho um arquivo com uma 10.000 linhas com esse formato:

111111111A;-11.111;-11.111;Xxxxxx;11-11-1111 11:11:11;11-11-1111 11:11:11
222;22-22-2222 22:22:22;2B
111111111A;-11.111;-11.111;Xxxxxx;11-11-1111 11:11:11;11-11-1111 11:11:11
222;22-22-2222 22:22:22;2B
111111111A;-11.111;-11.111;Xxxxxx;11-11-1111 11:11:11;11-11-1111 11:11:11
222;22-22-2222 22:22:22;2B

Quero juntar as linhas da seguinte forma:

111111111A;-11.111;-11.111;Xxxxxx;11-11-1111 11:11:11;11-11-1111 11:11:11 222;22-22-2222 22:22:22;2B
111111111A;-11.111;-11.111;Xxxxxx;11-11-1111 11:11:11;11-11-1111 11:11:11 222;22-22-2222 22:22:22;2B
111111111A;-11.111;-11.111;Xxxxxx;11-11-1111 11:11:11;11-11-1111 11:11:11 222;22-22-2222 22:22:22;2B

Grato por qualquer ajuda.

Cyro Ciolfi
Divisão de Suporte Computacional - CTI Renato Archer
Professor - Metrocamp




--

Leonardo Goretti
Analista de infraestrutura - GNU/LINUX mais2x.com
Instrutor GNU/LINUX
Itil V3
Celular: +55 (61)
9375 3366
Gtalk: address@hidden
----------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]