Help with copy files from multiple directories one inside other of the same type to one directory

Alexander Skwar listen at alexander.skwar.name
Sat Jul 29 14:53:43 UTC 2006


· José Paulo Matafome Oleiro <matafomeoleiro at gmail.com>:

> The command
> deb in `find /top/level/directory -type f -iname '*.deb'`    (has just
> worked and showed all files)

What did you do? It shouldn't *show* any files. Also, what command
are you talking about? What did you type?

Anyway, as it's very bad to use find with for, you shouldn't
even get used to it. Better use the "while" alternative, or,
for this purpose, the alternative with xargs.

> but this down doesn't work 
> 
> do
> cp "$deb" /some/other/directory/

How does it not work? How did you verify?

Come on, please be more verbose! YOU want to get something done, thus
YOU have got to make it so, that it's EASY to help you. Right now, you're
NOT doing this.

Alexander Skwar
-- 
Soldaten:
  Meßergebnisse bei Sol-Eiern






More information about the ubuntu-users mailing list