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

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

Re: Atribuição de valor à variavel


From: isampbr
Subject: Re: Atribuição de valor à variavel
Date: Thu, 09 Sep 2004 16:06:01 -0000
User-agent: eGroups-EW/0.82

Oi, 

Obrigado por sua resposta ! Já tentei isso e nao funcionou !
Segue o script em que tento utilzar este recurso:

#!/bin/sh
clear
for LINHA in `cat emails.txt | grep -v "#"`
        do
                echo $LINHA
                xx = `echo $LINHA | cut -d":" -f2`
                echo $xx
        done

E o resultado:

address@hidden:address@hidden:address@hidden:subj:file.txt
./x.sh: xx: command not found

E eu esperava que o resultado fosse algo assim: 

address@hidden:address@hidden:address@hidden:subj:file.txt
address@hidden


Isamp


--- Em address@hidden, Isaias de Assis Machado
<isaias@i...> escreveu
> set x=abc:def
> y=`echo $x | cut -d ":" -f 2`
> 
> isampbr escreveu:
> > Oi Pessoal, 
> > 



reply via email to

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