On Sat, Sep 24, 2011 at 11:53 AM, Ivan Shmakov <[email protected]> wrote: >>>>>> Mark Panen <[email protected]> writes: > > > 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. > > It's not what I'd usually call “one shot” (= atomic), but, IIUC, > the following single command line should do it: > > $ mkdir -pv -- /mnt/deer/zebra \ > && find /mnt/deer/ -maxdepth 1 -mindepth 1 -not -name zebra \ > -exec mv --target-directory=/mnt/deer/zebra -- {} + > > -- > FSF associate member #7257 Join news:comp.unix.shell for pretty > much /everything/ related to the POSIX Shell language and its variants. > > > -- > To UNSUBSCRIBE, email to [email protected] > with a subject of "unsubscribe". Trouble? Contact [email protected] > Archive: http://lists.debian.org/[email protected] > >
will this mv only the file/folders created on the 22/09/2011, i want the older files etc to stay behind. -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected] Archive: http://lists.debian.org/cabwh29mq9hmcxkg1xf9mghuyb5mq0m-wjbv4hr2j9c9zbts...@mail.gmail.com

