Em Thu, Oct 02, 2003 at 12:22:07PM -0300, Fernando Shayani escreveu: > Eu preciso atualizar o arquivo .bash_profile de CADA um dos usuarios do > meu sistema. > > Penso em usar um script que faca o comando > > cat /novo_profile > /home/usuario/.bash_profile > > mas, ao invez de /home/usuario, isso seja executado EM TODOS OS > diretorios dentro do /home, com os links corretos. > > Alguem pode me ajudar? > #!/bin/sh
for i in `ls /home`; do
cat /novo_profile > $i/.bash_profile
done
> Obrigado
> Fernando Shayani
> [EMAIL PROTECTED]
>
>
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact
> [EMAIL PROTECTED]
>
--
"Hell is empty, and all the devils are here"
-- W. Shakespeare, The Tempest
signature.asc
Description: Digital signature

