[EMAIL PROTECTED] wrote:
On Thu, 31 Oct 2002, LeRoy Hogan wrote:
=>Hello All,
=>
=>Is there a way to copy a file to my users in a !/bin/bash script without
=>doing a bunch of 'cp' commands? Below is as far as I got that brings up
=>only one user (target) for 'cp'
=>
=>cd /home
=>find -name lrhog -exec cp -f /usr/local/src/nysba/postset/.Xclient {} \:
=>
=>Thanks,
=>Roy
Not sure what you're asking, and I'm not sure you do either.
Your find command will copy the file to lrhog's home directory *and*
remove every other file in it.
What's wrong (something like) with:
cd /home
for i in *
do
cp $fn $i
done
Thanks for the help.
Roy
_______________________________________________
Seawolf-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/seawolf-list