[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [shell-script] Deletar linha de um arquivo
From: |
Rodrigo Monteiro |
Subject: |
RE: [shell-script] Deletar linha de um arquivo |
Date: |
Wed, 31 Aug 2005 05:16:47 -0700 (PDT) |
realmente eh bem melhor :), mas o que eu fiz foi soh
para ele ter a ideia de como funciona.
one-liners rlz! :P
--- MrBiTs <address@hidden> wrote:
> /*
> root@sepsrv123:~# cat -n .bash_history | head
> root@sepsrv123:~# cat -n .bash_history | head | sed
> '3d'
> *
>
> Que tal só o
>
> $ sed '3d' arquivo > arquivo_sem_a_linha3
>
>
> ------------------------------------------
> "There is still more Unix-nature in one
> line of shell script than there is in ten
> billion lines of C"
> Master Foo - Sh-bng Province - 530 B.C.
>
> "Programar em shell scritp é a coisa mais gostosa
> que você pode fazer
> vestido"
> Julio C. Neves - 10/08/2005
>
>
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs