[Ilugc] hidden files

  • From: raamanp@xxxxxxxxxxx (Raman.P)
  • Date: Thu, 4 Mar 2004 03:46:27 +0000 (GMT)

 --- "Jaiganesh N - CTD, Chennai." <jaigan@xxxxxxxxxxxxxxx> wrote: > 

-----Original Message-----
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


find /etc/skel -exec cp {} /home/ccs \;

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

Other related posts: