[svlug]how to copy a bunch of "." files?

Ian B MacLure imaclure at mail.arc.nasa.gov
Thu Apr 27 08:55:19 PDT 2000


>given a directory with . files in it, how do I copy them all to another
>directory?

	To copy the entire directory hierarchy below your PWD
	cd to the directory you want to copy FROM

	find . -print | cpio -dmpv <TO-DIRECTORY-PATH>

	This ought to work for all a*X ( where a={L,U} )
	of whatever vintage.
	If you have links or dates you want saved you should
	research find & cpio.

	IBM

-
################ No Times Like The Maritimes, Eh! ##########################
# IBM   aka          #   imaclure at mail.arc.nasa.gov 
(Eudora/POP3)            (desk)          #
# Ian B MacLure  #    maclure at cvsrf.arc.nasa.gov 
(currently)   #
# Sr Engineer / MSEC / Nasa Ames Research Center / Moffett Field, CA 
#
# Voice: (650)604-0667     Fax: (650)964-4195     Secretary: 
(650)604-6737                 #
#####################################################################





More information about the svlug mailing list