COPYFILESStoredon:Library>CopyFiles.Tedit,.Press,InterpressLastModified:8-Oct-84By:Sybalsky,MasinterThispackagemakesiteasytocopyormovegroupsoffilesfromoneplacetoanother.(COPYFILESsourcedestinationoptions)Copiesthefilesdesignatedbysourcetotheplacedesignatedbydestination.sourceisapatternsuchasgiventoDIRECTORYorDIR;itcanalsobealistoffilenames.destinationiseitheradirectoryname,orafile-namepattern,witha1-1matchof"*"sintoto"*"sinsource.(Thenumberof*'sineachsourcepatternneedstomatchthenumberof*'sineachdestinationpattern.)Theargumentoptionsisa(listof)options(ifyouhaveonlyoneanditsanatom,youcansupplyitasanatom),asfollows:1.YoucanspecifyhowverboseCOPYFILESisaboutwhatitisdoing:QUIETdon'tprintanythingwhileworking.(OUTPUTfile)printoutputonfile.(OUTPUTT)isthedefault.TERSEonlyprinta"."foreachfilemoved/copied.2.youcanspecifywhetherCOPYFILESshouldaskbeforeeachtransfer.Defaultisnottoask.ASKaskeachtimebeforemoving/copyingafile(defaultistonotask).(ASKN)Ask,withdefaulttoNoafterDWIMWAITseconds.(ASKY)Ask,withdefaulttoYesafterDWIMWAITseconds.3.COPYFILESnormallyusesCOPYFILEtocreateanewfile.Italsousuallyonlycopiesthe"highestversion",andcreatesanewversionatthedestination.Alternatively,youcanspecifyanyofthefollowing:RENAMEorMOVEuseRENAMEFILEinsteadofCOPYFILE,i.e.,thesourceisdeletedafterwards.ALLVERSIONSCopyallversions,andpreserveversionnumbers.REPLACEIfafilebythesamenameexistsonthedestination,overwriteit(don'tcreateanewversion)4.AfterCOPYFILESgetsdone,itcanbeinstructedtodeletesomefilesafterward:PURGEThisinvolvesaseparatepass(afterwards):anyfileonthe*destination*whichdoesn'thaveacounterpartonthe*source*isdeleted.PURGESOURCEconverseofPURGE(andusedbyit):ifthefileisonthesourceandnotonthedestination,deleteit. q?` p q?` g_p"a>q1a>ra>2B2Ha> ^s O  %)^ \ c\\ [ 3[ Uwt >[3 "O&*,|/f25h98:@$Uw Qy %QyuQy}5 #NQytQy#QyuQy#Qy CO"tyo  O"uO"%O"tO"%'%)-h 466O"uO" =O"tO">>O"uO"BO"tO"CKDEJJO" CM!-#&I'*r-/03K57t<7# /&(V),0>7 C;%B#%R /; C9 I9 C72lt&+(-2$5;C@$ACEH72 C4g!_ ,1-N/467:=$4 C2 8"]%-B32 C0- 8"&7-30- C- au! (|*Z.0c367;2@ICHfJJ- C,S:u!"&+E,/ 7s @2C EJJ,S C*w * C(yz'5(y C&"~ $&/-0V27i8= D&" C# # C!tS`"',2!t C C3{j!O%V)}+.( 6|#& /L144668 AEJJ>C` -"'$*,$1B Cd d C eS!%k)2+d-/)14o6'8z;-@=CUFHfJJ  !  q?`2COPYFILESnormallycomparesthecreationdatesofthefileonthesourceandanymatchingfileonthedestinationtodeterminewhetheritisnecssarytocopy.Thefollowingoptionsaremutuallyexclusive:>copyonlywhenafilebythesamenamebutanearliercreationdateexistsonthedestination.>ASimilarto>,butalsocopyifthefiledoesn'texistonthedestination,i.e.,>ALWAYS.#Copyonlywhenafilebythesamenamebutadifferentcreationdateexistsonthedestination.#ASimilarto#,butalsocopyifthefiledoesn'texistonthedestination,i.e.>ALWAYS.=ACopyifthereisn'tafileofthesamenameonthedestination;ifthereis,leaveit,butifthefileonthesourcedoesn'texistatallonthedestination,*do*copyit.Notallcombinationsofoptionsmakesense;forexample,ALLVERSIONSprobablydoesn'tworkrightwithanydatecomparisonalgorithms.Examples:(COPYFILES'{ERIS}*.MAIL'{PHYLUM}OLD-*.MAIL)willcopytheanymailfileon{Eris}to{Phylum},renamingFOO.MAILtoOLD-FOO.MAIL.(COPYFILES'{ERIS}*.MAIL'{PHYLUM}OLD-*.MAIL'RENAME)willuseRENAMEFILEinstead.(COPYFILES'({DSK}TEST{DSK}WEST)'{PHYLUM})willmovethefilesTESTandWESTfrom{DSK}to{PHYLUM}.(COPYFILES'{PHYLUM}*.AR'{PHYLEX:}ARS>'>A)willcopyalloftheARson{PHYLUM}tothePhylexNSfileserver;ifanyarealreadythere,itwon'tbothercopyingthem.(COPYFILES'{PHYLUM}AR.INDEX'{DSK}AR.INDEX'(>AREPLACE))willcopytheARindexto{DSK},replacinganyolderversionthatisalreadythere.COPYFILES({DSK}*.;{FLOPPY})willcopyallfileson{DSK}withnoextensionto{FLOPPY}.(COPYFILES'{ERIS}'{PHYLUM}'(#APURGE))willmake{Phylum}looklike{ERIS};bringingoveranyfilethatisn'talreadyonPhylumandthendeletingtheonesthatwereon{PHYLUM}andaren'ton{ERIS}anymore.! gt hv h Cbt Ib C_V%!$,)-/-1358#<?BAHJJ_ C^Eh 0.#Q)6*,249/AF0HgJJZkX PX CV8 n "% */-{/u1 9<-=5CtV CT: 5"$':+'/5138>B F;HgJJT:R PR CP`.t!%@&](*03M5G7 ?dABHP` CN  #$'$*.03[ ;/<_@AEG=IJJN L;uo!&)+g-4/.1 9K<@>AkL CJ/ g!%^),24 <6B4GSJJJ/ CH|: ! (/H BwB @Ex @E >t }$=> =* =* ; D|+-;OB+I+JJ; :$ ]:$ 8 8 7 }$<C7 5 5 4 \ %4 2 2 1 } h $_2@1 / / .  \#~hD M#()7l7r. , , + }$4{6+ ) ) ( fX)+%-2+4p6;l<?<AFJJ( &} c`&} $ $ #w }( 3q6F=#w ! ! q q  \&l=%'+H0C3 4k9o=# k k : 6"& '*,1J4@6:<>TE e e  } 125;; _  $&5;?B DGJJ_ 3g"%T(,/19<@CH$JJ Y Y   q?`o HELVETICA  HELVETICA ~GACHA  HELVETICA  HELVETICA  HELVETICA HELVETICA HELVETICA~GACHApEoj/*{ERIS}LIBRARY>COPYFILES.TEDIT;11KAPLAN24-Nov-84 15:58:48