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

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

Re: [shell-script] Gerando saida texto...


From: Tiago Barcellos Peczenyj
Subject: Re: [shell-script] Gerando saida texto...
Date: Tue, 29 Jul 2008 11:21:03 -0300

Podes tentar assim:

fgrep -i -f /root/maquinas-ligadas /home/todas-as-maquinas > relatorio.txt


2008/7/29 Marcelo <address@hidden>:
> Srs,
>
> Como eu gero um arquivo texto na situação abaixo:
>
> for teste in `cat /root/maquinas-ligadas`; do
> fgrep -i $teste /home/todas-as-maquinas
> done
>
> quando executo este script, me retornam somente as máquinas ligadas e
> suas configurações
> conforme no arquivo /home/todas-as-maquinas, só que preciso gerar este
> resultado
> em um arquivo texto.
>
> alguma dica?
>
> Abraços,
> Marcelo
>
> ----------------------------------------------------------
> Esta mensagem pode conter informacao confidencial.
> Se voce nao for o destinatario ou a pessoa autorizada a receber
> esta mensagem, nao podera usar, copiar ou divulgar as informacoes nela
> contidas ou tomar qualquer acao baseada nessas informacoes. Se
> voce recebeu esta mensagem por engano, favor avisar imediatamente o
> remetente, respondendo o e-mail e, em seguida, apague-o.
> Agradecemos sua cooperacao.
>
> This message may contain confidential information.
> If you are not the addressee or authorized person to receive it for the
> addressee, you must not use, copy, disclose or take any action based on
> this message or any information herein. If you have received this message
> in error, please advise the sender immediately by replying this e-mail
> message and delete it.
> Thanks in advance for your cooperation.
> ----------------------------------------------------------
> Faculdade de Medicina USP
> ----------------------------------------------------------
>
> 



-- 
Tiago B Peczenyj
Linux User #405772

http://peczenyj.blogspot.com/
"what does not kill us makes us stronger"


reply via email to

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