UPDATE Re: mv files


Subject: UPDATE Re: mv files
bryan@ak.net
Date: Tue Apr 02 2002 - 22:25:06 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

Okay, second try:
 for fn in `find /parentdir -type f`; do mv $fn ~/apt/archive; done

Only move regular files, not directories.

--
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 - 23:01:57 AKST