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*' 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 Of course a Perl script will work, and will even be more flexible, but if that's all you need, the unix tools work great. Chris -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]