Moving Files (Again)

Kevin D. Clark kclark at CetaceanNetworks.com
Tue Jan 7 10:19:09 EST 2003


"Travis Roy" <travis at scootz.net> writes:

> I just need something that will go thru all those random directors and
> grab /cur/*.zip and shove them into say /home/travis/mamedk/roms

Assuming that none of the filenames contain embedded newlines or other
strange characters:

  for A in `find ~/mamedk/roms2.mame.dk -name \*.zip -print | grep 'cur/[^/]*\.zip$'` ; do
    cp "$A" ~/mamedk/roms
  done

Regards,

--kevin
-- 
Kevin D. Clark / Cetacean Networks / Portsmouth, N.H. (USA)
cetaceannetworks.com!kclark (GnuPG ID: B280F24E)
alumni.unh.edu!kdc




More information about the gnhlug-discuss mailing list