Isso é Metallica, não? rsrsr<br><br><div><span class="gmail_quote">2007/8/28, Alberto Monteiro <<a href="mailto:albmont@centroin.com.br">albmont@centroin.com.br</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Reginaldo Carvalho escreveu:<br>><br>> Adilson, obrigado pela sua colaboração... mas esse procedimento<br>> não funcionou...<br>><br>Eu não recomendo que seja feita uma "chacina" de arquivos,<br>pelo risco de apagar alguma coisa importante. Mas sempre tem
<br>o find para matar tudo:<br><br>find /dir-origem -name "*.txt" -exec rm -v {} \;<br><br>Mas, como eu disse antes, eu NÃO recomendo que esse "seek and<br>destroy" seja usado. Eu sugiro algo como:<br>
<br>mkdir /dummy-dir<br>find /dir-origem -name "*.txt" -exec mv -vi {} /dummy-dir \;<br><br>desta forma, os *.txt serão movidos para o diretório dummy -<br>assim, se alguma coisa der errado (e alguma coisa _sempre_
<br>dá errado), dá pra recuperar os arquivos.<br><br>Aliás, um procedimento mais tranquilo é fazer em três etapas.<br>Na primeira, os arquivos .txt são listados, na segunda,<br>verificados e na terceira eliminados:<br><br>
# 1a etapa<br>xmms Metallica_-_Seek_And_Destroy.mp3 # para inspirar<br>echo "# Seek and Destroy" > seek_and_destroy.sh<br>for x in `find /dir-origem -name "*.txt"`<br>do<br>  echo "rm -v $x" >> seek_and_destroy.sh
<br>done<br><br># 2a etapa<br>cat seek_and_destroy.sh<br><br># 3a etapa<br>sh seek_and_destroy.sh<br>rm seek_and_destroy.sh<br><br>Alberto Monteiro<br><br>PS: isso funcionava no FC4. Não sei se funciona no FC6 :-P<br>--<br>
<br>We are scanning the scene<br>In the city tonite<br>We are looking for you<br>To start up a fight<br>There is an evil feeling<br>In our brains<br>But it is nothing new<br>You know it drives us insane<br><br>  Running<br>
  On our way<br>  Hiding<br>  You will pay<br>  Dying<br>  One thousand deaths<br>  Running<br>  On our way<br>  Hiding<br>  You will pay<br>  Dying<br>  One thousand deaths<br><br>    Searching<br>    Seek and Destroy<br>
    Searching<br>    Seek and Destroy<br>    Searching<br>    Seek and Destroy<br>    Searching<br>    Seek and Destroy<br><br>There is no escape<br>And that is for sure<br>This is the end we won't take any more<br>Say goodbye
<br>To the world you live in<br>You have always been taking<br>But now you're giving<br><br>  Running<br>  On our way<br>  Hiding<br>  You will pay<br>  Dying<br>  One thousand deaths<br>  Running<br>  On our way<br>  Hiding
<br>  You will pay<br>  Dying<br>  One thousand deaths<br><br>    Searching<br>    Seek and Destroy<br>    Searching<br>    Seek and Destroy<br>    Searching<br>    Seek and Destroy<br>    Searching<br>    Seek and Destroy
<br><br>Our brains are on fire<br>With the feeling to kill<br>And it will not go away<br>Until our dreams are fulfilled<br>There is only one thing<br>On our minds<br>Don't try running away<br>Cause you're the one we will find
<br><br>  Running<br>  On our way<br>  Hiding<br>  You will pay<br>  Dying<br>  One thousand deaths<br>  Running<br>  On our way<br>  Hiding<br>  You will pay<br>  Dying<br>  One thousand deaths<br><br>    Searching<br>    Seek and Destroy
<br>    Searching<br>    Seek and Destroy<br>    Searching<br>    Seek and Destroy<br>    Searching<br>    Seek and Destroy<br><br><br>--<br>Fedora-users-br mailing list<br><a href="mailto:Fedora-users-br@redhat.com">Fedora-users-br@redhat.com
</a><br><a href="https://www.redhat.com/mailman/listinfo/fedora-users-br">https://www.redhat.com/mailman/listinfo/fedora-users-br</a><br></blockquote></div><br><br clear="all"><br>-- <br>Rafael Gomes<br>Consultor em TI<br>
ITServ - Tecnologia com Segurança<br>(71) 8146-5772