On Thu, 10 Jan 2002, Christopher Solomon wrote:

>
> On Thu, 10 Jan 2002, zentara wrote:
>
> > Hi,
> > I'm trying to find all .so.xxx files on my system.
> > Eventually I want to do things with them, but for
> > now I just want to identify them.
> >
> > I pretty much have it, except I'm lacking enough
> > regex knowledge to separate out the  so  from the .so.
> > files.
> >
> > I'm matching
> >
> > cursor
> > moc_sound
> > libqt.so.2
> > libqt-mt.so
> > etc.
> >
> > It's pretty close but not clean enough.
> > Anyone? Thanks.
>
> Assuming you're on a *nix system, you can skip Perl altogether, and use
> the unix command-line tool 'find':
>
>
> [%prompt%] find /usr/lib -type f -print -name '*.so*'

actually, you probably want to put the print after -name '*.so*':

 [%prompt%] find /usr/lib -type f -name '*.so* -print

or omit it the -print altogether (you may not need it).

>
>
> If you want to save the list to file, just redirect the output with the
> greater-than symbol '>' and specify a file name:
>
>
> [%prompt%] find /usr/lib -type f -print -name '*.so*' > some_file.txtB
>

ditto..



Chris


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to