[SunHELP] syncing/copying files

Larry Snyder sunhelp at sunhelp.org
Fri Oct 5 17:44:36 CDT 2001


I'm not a perl geek, but find can test the mtime of a copied file and with
'newer' feed your script.  I'm not expressing this right, but hope you
get the idea.
-ls-

David Bishop <tech at bishop.dhs.org> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> I am tasked with syncing two directorys, sort of.  I have a large directory 
> with a ton of files (10K+) of which I want a subsection copied over to 
> another directory.  Luckily, all the files I want to move are prefaced by 
> known strings (foo, bar, boz), so I wrote a 5 line perl script that slurps up 
> a config file that lists all the prefaces we want to copy, then does a 
> 
> foreach $preface ($blah){sytem("cp $preface* /target") or die;}.  




More information about the SunHELP mailing list