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

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

Re: [shell-script] Retirar o Enter do fim da linha...


From: jaugusto
Subject: Re: [shell-script] Retirar o Enter do fim da linha...
Date: Fri, 22 Mar 2002 13:39:25 -0300

Pessoal

   uma outra maneira, acho que mais leve.
   eval VARIAVEL=$VARIAVEL

[]'s

José Augusto
HSBC Bank Brasil S.A.
Treinamento de Informática
Analista de Suporte Senior


Uma opção seria:

VARIAVEL=$( echo $VARIAVEL | tr -d "\012" )

Em Sex 22 Mar 2002 10:58, você escreveu:
> Como retirar o enter do fim da linha de uma variavel possuindo uma linha
> (duas por causa do enter)?
>
> Reinaldo
>
>
> Sair da lista: address@hidden
> Banco Dados:   http://www.egroups.com/group/shell-script
>
> Seu uso do Yahoo! Grupos é sujeito às regras descritas em:
> http://br.yahoo.com/info/utos.html

Sair da lista: address@hidden
Banco Dados:   http://www.egroups.com/group/shell-script

Seu uso do Yahoo! Grupos é sujeito às regras descritas em:
http://br.yahoo.com/info/utos.html









This message and any attachments are confidential to the ordinary user of
the e-mail address to which it was addressed and may also be privileged. If
you are not the adressee you may not copy, forward, disclose or use any
part of the message or its attachments and if you have received this
message in error, please notify the sender immediately by return e-mail and
delete it from your system.
Internet communications cannot be guaranteed to be secure or error-free as
information could be intercepted, corrupted, lost, arrive late or contain
viruses. The sender therefore does not accept liability for any errors or
omissions in the context of this message which arise as a result of
Internet transmission.


From (no email address) Fri Mar 22 08:46:33 2002
Return-Path: <address@hidden>
X-Sender: address@hidden
X-Apparently-To: address@hidden
Received: (EGP: unknown); 22 Mar 2002 16:46:32 -0000
Received: (qmail 11446 invoked from network); 22 Mar 2002 16:46:32 -0000
Received: from unknown (66.218.66.216)
  by m12.grp.scd.yahoo.com with QMQP; 22 Mar 2002 16:46:32 -0000
Received: from unknown (HELO perninha.conectiva.com.br) (200.250.58.156)
  by mta1.grp.scd.yahoo.com with SMTP; 22 Mar 2002 16:46:31 -0000
Received: from burns.conectiva (burns.conectiva [10.0.0.4])
        by perninha.conectiva.com.br (Postfix) with SMTP id D7BEE38F2E
        for <address@hidden>; Fri, 22 Mar 2002 13:46:23 -0300 (EST)
Received: (qmail 9304 invoked by uid 0); 22 Mar 2002 16:46:41 -0000
Received: from verde.conectiva (10.0.2.168)
  by burns.conectiva with SMTP; 22 Mar 2002 16:46:41 -0000
Date: Fri, 22 Mar 2002 13:49:20 -0300 (BRT)
X-X-Sender:  <verde@verde.conectiva>
To: <address@hidden>
Subject: Re: [shell-script] Retirar o Enter do fim da linha...
In-Reply-To: <address@hidden>
Message-ID: <Pine.LNX.4.33L.0203221348050.974-100000@verde.conectiva>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=iso-8859-1
Content-Transfer-Encoding: 8BIT
From: # aurelio marinho jargas <address@hidden>
X-Yahoo-Group-Post: member; ug194321
X-Yahoo-Profile: verde6666

@ 22/3, address@hidden:
>    uma outra maneira, acho que mais leve.
>    eval VARIAVEL=$VARIAVEL

ou outra:

VARIAVEL=${VARIAVEL%?}

"a partir do final (%), corte um caractere (?)"


> Uma opção seria:
> VARIAVEL=$( echo $VARIAVEL | tr -d "\012" )
>
> Em Sex 22 Mar 2002 10:58, você escreveu:
> > Como retirar o enter do fim da linha de uma variavel possuindo uma linha
> > (duas por causa do enter)?



--
http://verde666.org s/click/^a]/;^[:wq



reply via email to

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