Help with copy files from multiple directories one inside other of the same type to one directory
José Paulo Matafome Oleiro
matafomeoleiro at gmail.com
Sat Jul 29 13:40:15 UTC 2006
This hadn't work. I'm using ubuntu dapper 6.06. Any tool can do this.
But this tool need to be pre-installed with the system. Thanks for your
time.
Sáb, 2006-07-29 às 07:26 -0400, Todd Slater escreveu:
> On 7/29/06, José Paulo Matafome Oleiro <matafomeoleiro at gmail.com> wrote:
> >
> >
> > Hello I've need help because I can't copy all the *.deb files that I have in one directory for example like this structure of files:
> > main
> > |-sources|
> > | |->a|
> > | |*.deb
> > |- multiples|
> > |->c|
> > |->*.deb (the deep of the directory are much bigger)
> >
> > Only for example since they're more directorys under the main structure and I need to copy then to ~/filesdeb/*.deb the files need to be all here. I don't wan't to use nautilus to do such job because takes me too long since they're more then 5000 files.
> > How I can put this with one command on the shell?
> > Thanks in advance for you help
>
> for deb in `find /top/level/directory -type f -iname '*.deb'`
> do
> cp "$deb" /some/other/directory/
> done
>
>
> HTH,
>
> Todd
>
Sincerely
José Oleiro aka Matafome (#computers at irc.ptnet.org)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20060729/7debd585/attachment.html>
More information about the ubuntu-users
mailing list