[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: command to mv files & folders to dir



Mark Panen wrote:
Made a bit off a muck up off things when i backed up parts of my
/home/mark directory to /mnt/deer

In /mnt/deer i know have hundreds of files and folders which i rsynced
on 22/09/2011.

I need a command line option to put them all In one shot in /mnt/deer/zebra.

(cd /mnt/deer;mkdir zebra;mv * .* zebra)

And yes, sure it will complain about . and .. as well as zebra, but it'll work fine for all other files / directories / links.

if there are too many files for the wild cards to work, then you'll have a bit more fun, let us know. ;-)

Cheers

--
Kind Regards
AndrewM

Andrew McGlashan


Reply to: