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 15:11:42 UTC 2006
This command ---> find /top/level/directory -type f -iname '*.deb'
(showed all the files that exists in the directory's)
but when I execute the command cp "$deb" /home/user/destination
directory (it shows cp: can execute stat '$deb': No such file or
directory
It's all that I know that happens
Sáb, 2006-07-29 às 16:53 +0200, Alexander Skwar escreveu:
> · 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
>
>
>
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/6bf7cdc1/attachment.html>
More information about the ubuntu-users
mailing list