Carl St-Jacques wrote:
> 
> Hi,
> 
>     I need help... i have a file that i want to be copied in many folders. I
> tried to use a bash script with no success. The folders where the file have
> to be copied use a pattern based on a login name ex:(carlstj.macnt,
> lcl.macnt, etc...). The idea is to use this script to copy the file to the
> folders using a pattern matching /[a-zA-Z0-9].macnt/. thanks
> 
> Carl St-Jacques

for i in *.macnt; do
        cp <file> $i/.
done

-- 
Steve Philp
Network Administrator
Advance Packaging Corp.
[EMAIL PROTECTED]

Reply via email to