Re: mv files


Subject: Re: mv files
bryan@ak.net
Date: Tue Apr 02 2002 - 22:19:56 AKST


Greg Madden wrote in <1017788845.31386.50.camel@clos>:
>
> I have a bunch of directories (100?)that have files in them. The
> directoires are sub-dir. How do I mv all the files to another dir,
> consolidating them, without moving the dir also, or entering each
> sub-dir & moving them. These files are all .deb filespackages, need to
> move them to ~/apt/archive. TIA

What, no one's answered this yet? Goody, I get to take this one. :)

If they're all in subdirs of one directory, say /parentdir, then:
 for fn in `find /parentdir`; do mv $fn ~/apt/archive; done

Slick, eh?

--
Bryan Medsker
bryan@ak.net

--------- To unsubscribe, send email to <aklug-request@aklug.org> with 'unsubscribe' in the message body.



This archive was generated by hypermail 2a23 : Tue Apr 02 2002 - 22:22:33 AKST