[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [shell-script] substituir
From: |
jimmy |
Subject: |
Re: [shell-script] substituir |
Date: |
Tue, 26 Aug 2008 15:35:50 -0300 |
User-agent: |
Mutt/1.4.2.3i |
_______________________________________________________________________________
$ seq 10 | xargs -l2 | tr ' ' -
mas a opção anterior é bem melhor.
_______________________________________________________________________________
On Tue, Aug 26, 2008 at 03:29:43PM -0300, Tiago Barcellos Peczenyj wrote:
> Teste essa solução
> $ seq 10 | paste -d\- - -
>
> ou
>
> $ paste -d\- - - arquivo > novo.arquivo
>
> 2008/8/26 Elvio Barbalho <address@hidden>:
> > Senhores boa tarde, estou com o seguinte problema:
> >
> > tenho um arquivo assim:
> >
> > 1
> > 2
> > 3
> > 4
> > 5
> > 6
> > 7
> > 8
> > 9
> > 10
> >
> > quero que ele saia assim:
> >
> > 1-2
> > 3-4
> > 5-6
> > 7-9
> > 9-10
> >
> > [As partes desta mensagem que não continham texto foram removidas]
> >
> >
>
>
>
> --
> Tiago B Peczenyj
> Linux User #405772
>
> http://peczenyj.blogspot.com/
> "what does not kill us makes us stronger"
>
> ------------------------------------
>
> ---------------------------------------------------------------------
> Esta lista não admite a abordagem de outras liguagens de programação, como
> perl, C etc. Quem insistir em não seguir esta regra será moderado sem prévio
> aviso.
> ---------------------------------------------------------------------
> Sair da lista: address@hidden
> ---------------------------------------------------------------------
> Esta lista é moderada de acordo com o previsto em
> http://www.listas-discussao.cjb.net
> ---------------------------------------------------------------------
> Servidor Newsgroup da lista: news.gmane.org
> Grupo: gmane.org.user-groups.programming.shell.brazil
>
> Links do Yahoo! Grupos
>
_______________________________________________________________________________
- substituir, Elvio Barbalho, 2008/08/26
- Re: [shell-script] substituir, Tiago Barcellos Peczenyj, 2008/08/26
- Re: [shell-script] substituir,
jimmy <=
- Re: [shell-script] substituir, Fabiano Caixeta Duarte, 2008/08/26
- Re: substituir, voyeg3r, 2008/08/27
- Re: [shell-script] Re: substituir, jimmy, 2008/08/27
- Re: [shell-script] Re: substituir, Tiago Barcellos Peczenyj, 2008/08/27
- Re: [shell-script] Re: substituir, jimmy, 2008/08/27
- Re: [shell-script] Re: substituir, Tiago Barcellos Peczenyj, 2008/08/27