> From: LeRoy Hogan <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Command line question
>
> 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
>
You should have "\;", not "\:" at the end of the command. Otherwise, if
you fix that and we assume that each user under /home has a directory
called "lrhog", the .Xclient file will be written to each such directory.
If each user has a **FILE** called "lrhog", those files will be overwritten
by the .Xclient file.
--
pete peterson
Teradyne, Inc.; 7 Technology Park Drive; Westford, MA 01886-0033
+1-978-589-7478 (Office); +1-978-589-2088 (FAX);
[EMAIL PROTECTED] or [EMAIL PROTECTED]
_______________________________________________
Seawolf-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/seawolf-list