[Ilugc] cp command with retaining permission
- From: roshan@xxxxxxxxx (Roshan George)
- Date: Fri Nov 12 14:37:53 2010
On Fri, 2010-11-12 at 14:09 +0530, Suresh Kumar wrote:
(in
other words not to change the owner and group if it was .. apache )
I might be over-complicating, but you can do this like so:
ls -la | grep -v apache | awk '{print $8}' | xargs chown newwonder:psgrp
You can probably change that a bit to get what you want.
--
Roshan George
Other related posts: