Babu-
find /etc/skel -name ".*" -print | xargs -i cp {} /home/css
would be better
but if you want to copy the hidden files only from /etc/skel and not
from any of its subdirectories, as someone has already mentioned in the
list,
cp /etc/skel/.* /home/css
would work.
I would suggest you to read sh(1) or Steve Bourne's shell tutorial which
explains about shell's wild card expansion.
On Thu, 2004-03-04 at 09:16, Raman.P wrote:
--- "Jaiganesh N - CTD, Chennai." <jaigan@xxxxxxxxxxxxxxx> wrote: >--
-----Original Message-----find /etc/skel -exec cp {} /home/ccs \;
From: babu jayapaul [mailto:babu_jayapaul@xxxxxxxxx]
Sent: Wednesday, March 03, 2004 2:55 PM
To: ilugc@xxxxxxxxxxxxxxxxxx
Subject: [Ilugc] hidden files
Dear Friends,
how to copy hidden files (.) from one dir to another
dir.
for example
/etc/skel/* /home/ccs
for a in `find /etc/skel`
do
[ $a != "." -o $a != ".." ]&& { cp $a /home/ccs; };
done
look at exec option in man find.
Note flower brace and \; are a must
The file name will be substituted in {} by find.
Raman.P
________________________________________________________________________
Yahoo! India Insurance Special: Be informed on the best policies, services,
tools and more.
Go to: http://in.insurance.yahoo.com/licspecial/index.html
_______________________________________________
To unsubscribe, email ilugc-request@xxxxxxxxxxxxx with
"unsubscribe <password> address"
in the subject or body of the message.
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc