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

Re: Command line question



> From: LeRoy Hogan <lerhone earthlink net>
> To: seawolf-list redhat com
> 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);
    pete peterson teradyne com or petersonp genrad com

 





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