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

Re: Script para executar em todos os diretorios



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
> fernando@aen.bahai.org.br
> 
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-user-portuguese-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact 
> listmaster@lists.debian.org
> 

-- 
"Hell is empty, and all the devils are here"
              -- W. Shakespeare, The Tempest

Attachment: signature.asc
Description: Digital signature


Reply to: