xargs

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Craig White
Date:  
Subject: xargs
On Sun, 2004-01-04 at 16:53, Bryce C wrote:
> What I would just do is
> for i in `cat users`; do cp -a /etc/skel/.procmailrc /home/$i/; chown
> $i:$i /home/$i/.procmailrc; done
> Simple bash programming there. For every line (user) in the file, cp the
> file to their home directory, and change the ownership to them (User:
> user's name, Group: user's name). I don't see the need for xargs and
> I've never understood it myself.
> Good luck.

---
no luck needed...you made it simple for me

Thanks,

Craig