[Ubuntu-BR] Ajuda em Shell

Zandre Bran zandrebran em gmail.com
Quinta Março 25 13:36:04 UTC 2010


2010/3/24 Bruno Eduardo <brunoeacampos em gmail.com>:

    Ôlas Eduardo.

> !/bin/bash
> for arquivo in `find /home/lixo -mtime +5`; do
>   echo $arquivo
>   # rm $arquivo
> done

#!/bin/bash
IFS_ATUAL=$IFS
IFS=$( echo -en "\n\b" )

for arquivo in `find find /home/lixo -mtime +5`; do
  echo $arquivo
  # rm $arquivo
done

IFS=$IFS_ATUAL

> Obrigado

- []s
- Zandre.

:: zandrebran.homelinux.org




More information about the ubuntu-br mailing list