Re: "find" and symlinks question

1996-10-11 Thread J.H.M.Dassen
[my find/symlink problem: find each file _once_ in the FTP directory 
 structure; to remove duplicates from http://www.debian.org/FTP/]

Phil> How about:
Phil>   find unstable/* contrib non-free -name '*.deb'
Phil> It won't find hidden files in unstable/, but it doesn't look like you 
Phil> want to.

Martin> How about trying "find unstable/* contrib/* non-free/* -name '*.deb'", 
Martin> or something similar?

Thanks! Although this doesn't appeal to my sense of aesthetics, it does
the job.

Ray
-- 
Cyberspace, a final frontier. These are the voyages of my messages, 
on a lightspeed mission to explore strange new systems and to boldly go
where no data has gone before. 

--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]


Re: "find" and symlinks question

1996-10-11 Thread Martin Stromberg
> 
> Hi,
> 
> As some of you may have noticed already, the http://www.debian.org/FTP/
> interface unfortunately has duplicated entries in it.
> 
> The script that generates it does a 'find' through all the directories
> of the FTP archive. To be precisely, it does a
>   find unstable contrib non-free -name '*.deb' -follow
> 
> The problem is that the same file is now listed under its real name
> (.../binary-i386/foo/bar.deb), and under the symlinks 
> (.../binary/foo/bar.deb).
> However, I cannot remove the '-follow' since 'unstable' is itself a symlink
> (currently to 'rex'), and would not be processed without it.
> 
> The 'ls' documentation mentions a '--dereference' switch, which could be
> used to do something like
>   find `ls --dereference unstable contrib non-free` -name '*.deb'
> but this switch doesn't appear to work.
> 
> How do I get a list of '*.deb' under all of unstable, contrib and non-free,
> without getting duplicates because of symlinks?
> 
> Ray  

[Klippa, klapp, kluppit]

How about trying "find unstable/* contrib/* non-free/* -name '*.deb'", or
something similar?



Follow you, follow me,

MartinS

--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]


"find" and symlinks question

1996-10-11 Thread J.H.M.Dassen
Hi,

As some of you may have noticed already, the http://www.debian.org/FTP/
interface unfortunately has duplicated entries in it.

The script that generates it does a 'find' through all the directories
of the FTP archive. To be precisely, it does a
find unstable contrib non-free -name '*.deb' -follow

The problem is that the same file is now listed under its real name
(.../binary-i386/foo/bar.deb), and under the symlinks (.../binary/foo/bar.deb).
However, I cannot remove the '-follow' since 'unstable' is itself a symlink
(currently to 'rex'), and would not be processed without it.

The 'ls' documentation mentions a '--dereference' switch, which could be
used to do something like
find `ls --dereference unstable contrib non-free` -name '*.deb'
but this switch doesn't appear to work.

How do I get a list of '*.deb' under all of unstable, contrib and non-free,
without getting duplicates because of symlinks?

Ray  
-- 
ART  A friend of mine in Tulsa, Okla., when I was about eleven years old. 
I'd be interested to hear from him. There are so many pseudos around taking 
his name in vain. 
- The Hipcrime Vocab by Chad C. Mulligan 

--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]