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

Re: Script para executar em todos os diretorios



On Thu, Oct 02, 2003 at 12:51:22PM -0300, Jos? de Paula wrote:
| #!/bin/sh
| 
| for i in `ls /home`; do
| 	cat /novo_profile > $i/.bash_profile
| done

Outra variação:

for i in /home/*/.bash_profile; do cat /novo_profile > $i; done


-- 
jxz@uol.com.br
http://jxz.dontexist.org/

Attachment: pgpdYXctMKPcr.pgp
Description: PGP signature


Reply to: