LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Regex in ls?

[ILUG] Regex in ls?

Declan Moriarty junk_mail at iol.ie
Fri May 12 10:36:23 IST 2006


On Fri, 2006-05-12 at 10:04 +0100, Colm MacCarthaigh wrote:
> On Fri, May 12, 2006 at 09:59:32AM +0100, Declan Moriarty wrote:
> > Getting this running is the best kept secret in the thing. How can I get
> > a listing of that bin/lin subdir _without_ the 200 libs? In other words,
> > I want a directory listing of everything _except the .so files.

> find ./ -type f ! -name  \*.so -ls
> 
On Fri, 2006-05-12 at 10:01 +0100, Brian Brazil wrote:
> find -not -name '*.so'
> 
> For more info:
> 
> find -not -name '*.so' -ls
> 
On Fri, 2006-05-12 at 10:16 +0100, Brian Brazil wrote:
> 
> ls -I '*.so'

Thanks, guys, I just am not with it today. Find never entered my head.
Version 1 & 2 above work, but also recurse into the huge number of
little directories that are there. So I'll pipe it to a file and have a
look that way.

Version 3 does not. I am not blaming Brian, I have very strong
suspicions about the version of ls supplied with Scientific Linux. If
it's RHEL compatible, it's also unicode compatible. This presents a
problem as there are unicode patches out there for some time for things
like ls and grep which, last heard, the maintainers had not accepted for
whatever reason. So your standard gnu system (e.g. LFS compiled from
source)is not unicode compatible, and seemed set to remain that way for
the present last time I looked. OTOH, rhel is a 'GNUnicode' system, and
they went ahead and patched up to make unicode work.

LFS is threatening to go unicode, and hlfs is also moving up to gcc-4.1
(and planning to go gnunicode). I'll have to build again then.

-- 
        With Best Regards,

        Declan Moriarty.




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell