Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I copy files for a certain owner

Status
Not open for further replies.

gbell

MIS
Feb 19, 2002
86
AU
I have a directory on a HP-UX server which has files created by many users. I wish to rcp files to another server but only for a certain user or owner.

The files will have the same group but different owners.

Can anyone help please?

Regards
Greg
 
man find (-user option)

Hope This Help
PH.
 
Use find :
find . -user username -exec rcp {} remote_server:/remote_dir \;

Dickie Bird (:)-)))
 
Wow that was quick, thanks that's got it sorted. Many thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top