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] listing files

[ILUG] listing files

Jerry Walsh jerry at aardvark.ie
Mon Jul 16 11:07:46 IST 2001


You could also just do:

ls foo*[^re]c

Jerry.

At 04:35 16/07/01 -0500, Stephen_Reilly at dell.com wrote:
>ls | grep [0-9A-Za-z][^re]c$
>
>Won't pick up files called c, but should suit your purposes. Aside from that
>you could have a go at using find, it can be made search for some very
>unusual things . . .
>
>steve
>
>-----Original Message-----
>From: Ian_Hanney at canadalife.ie [mailto:Ian_Hanney at canadalife.ie]
>Sent: 16 July 2001 09:53
>To: ilug at linux.ie
>Subject: [ILUG] listing files
>
>
>Hi,
>
>I have a list of files in a directory ending in 'c' such as
>
>      foo1.rec
>      foo1c
>      f002.rec
>      f002c
>      ..
>      ..
>
>How can I list the files that end in 'c' excluding the '.rec' guys?  I've
>been fiddling with ls for too long now!
>
>Thanks,
>
>Ian.
>
>
>--
>Irish Linux Users' Group: ilug at linux.ie
>http://www.linux.ie/mailman/listinfo/ilug for (un)subscription information.
>List maintainer: listmaster at linux.ie
>
>--
>Irish Linux Users' Group: ilug at linux.ie
>http://www.linux.ie/mailman/listinfo/ilug for (un)subscription information.
>List maintainer: listmaster at linux.ie





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