Re: Use "find" to search for files without extensions ?
From: Andreas Kahari (ak+usenet_at_freeshell.org)
Date: 09/25/03
- Next message: Stephane CHAZELAS: "Re: Use "find" to search for files without extensions ?"
- Previous message: Thomas Tornblom: "Re: Use "find" to search for files without extensions ?"
- In reply to: Thomas Tornblom: "Re: Use "find" to search for files without extensions ?"
- Next in thread: Stephane CHAZELAS: "Re: Use "find" to search for files without extensions ?"
- Reply: Stephane CHAZELAS: "Re: Use "find" to search for files without extensions ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 25 Sep 2003 08:07:02 +0000 (UTC)
In article <x0llsdgv0e.fsf@Hax.SE.remove-to-reply>, Thomas Tornblom wrote:
> thewhizkid@rock.com (thewhizkid) writes:
>
>> Is it possible to use the Unix "find" command to search a directory
>> recursively and print out all filenames without extensions ?
[cut]
> tt30446@terrance[991]> ls
> a.c b.h check hello proj1.doc spell.pl
> tt30446@terrance[992]> find . \! -name '*\.*'
> ./check
> ./hello
In a Bourne-derived shell, the escaping of the exclamation
mark is unnecessary. Also, since the pattern is not a regular
expression pattern but a file globbing pattern, the full stop
needs no escaping (in any shell).
-- Andreas Kähäri
- Next message: Stephane CHAZELAS: "Re: Use "find" to search for files without extensions ?"
- Previous message: Thomas Tornblom: "Re: Use "find" to search for files without extensions ?"
- In reply to: Thomas Tornblom: "Re: Use "find" to search for files without extensions ?"
- Next in thread: Stephane CHAZELAS: "Re: Use "find" to search for files without extensions ?"
- Reply: Stephane CHAZELAS: "Re: Use "find" to search for files without extensions ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]