Tiago e Reinaldo, Obrigado!
Abraços, Marcelo Tiago Barcellos Peczenyj escreveu: > > Podes tentar assim: > > fgrep -i -f /root/maquinas-ligadas /home/todas-as-maquinas > relatorio.txt > > 2008/7/29 Marcelo <[EMAIL PROTECTED] <mailto:marcelo%40fm.usp.br>>: > > 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/ <http://peczenyj.blogspot.com/> > "what does not kill us makes us stronger" > > --------------------------------------------------------------------- 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 ----------------------------------------------------------------------
