Linux: copy files based on a user

Published by

Posted on August 08, 2009

The script is incomplete but can be tweaked to meet your needs


find /root/ -user apache -print | \
while read file
do
cp "$file" /root/test1/`"$file"`
done