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

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

Re: [shell-script] Inserir linha no inicio


From: Gentil de Bortoli Jr
Subject: Re: [shell-script] Inserir linha no inicio
Date: Wed, 14 Dec 2005 14:32:23 -0200
User-agent: Thunderbird 1.4.1 (X11/20051006)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tiago Barcellos Peczenyj wrote:
> (tac arquivo ; echo "linha 2" ; echo "linha 1") | tac  > novo_arquivo

Outra saída:

sed -i -e '1i\' -e 'Linha1\nLinha2' Arquivo.txt

[]

Gentil de Bortoli Júnior
http://gentil.bortoli.com.br
KeyID: 0x8383E070 - www.keyserver.net

"There Is No Gene For The Human Spirit"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDoEkXU6AHyoOD4HARAufUAJ90uFdpLGnsGNrlZXGin/bmfe1oegCgsXyG
gMLGV1jgc3WonePguMO633I=
=KlNa
-----END PGP SIGNATURE-----


reply via email to

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