Willie Wong <[email protected]> wrote:
> > qfile --orphans $(find -H /usr/lib /lib -type f)
> >
> > which avoids checking all the symlinks.
In case that you find implementation works correctly, this will
not change anything unless either /usr/lib or /lib are symlinks.
If you however use find -L, -type f will find even all symlinks in case they
are pointing to a file.
In negative logic: "find -L /usr/lib -type l" will find all symlinks
in /usr/lib that do not point anywhere.
> BTW, though, $(find -H ...) will have too big a list. Perhaps better
> to do
>
> find -H /usr/lib /lib -type f | xargs qfile -o
This is why find has ".... -exec ... {} +" since 19 years.....
xargs will have problems in case that a file name contains spaces, tabs or
newlines.
Jörg
--
EMail:[email protected] (home) Jörg Schilling D-13353 Berlin
[email protected] (uni)
[email protected] (work) Blog:
http://schily.blogspot.com/
URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily