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

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


>On Wed, Apr 26, 2000 at 01:25:31PM -0700, Daevid Vincent wrote:
>  > given a directory with . files in it, how do I copy them all to another
>  > directory?
>
>find . -type f -maxdepth 1 | xargs -i mv '{}' otherdir

	Change that "mv" to "cp" first though.
	User did specify "copy".

	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