cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/09/11:28:32

From: codea AT iona DOT com
Newsgroups: comp.os.msdos.djgpp
Subject: Re: RHIDE SUGGESTION
Date: Sun, 09 Mar 1997 14:20:42 +0000
Organization: EUnet Ireland customer
Lines: 20
Message-ID: <3322C73A.42C5@iona.com>
References: <5fogsh$5kq AT freenet-news DOT carleton DOT ca> <5ftsd4$mks AT freenet-news DOT carleton DOT ca> <5fubv8$3tr AT lyra DOT csx DOT cam DOT ac DOT uk>
Reply-To: codea AT iona DOT com
NNTP-Posting-Host: lychee.dublin.iona.ie
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

G.P. Tootell wrote:

> it's not much use under dos really because the 'find' command does pretty
> much the same thing.
> try 'find "hello" filename' for instance. (which would be 'grep 'hello' <
> filename' under unix)

grep also allows the use of regular expressions which is far more
powerful than 
the simple string searches supported by DOS' find.  This allow you to do
stuff like 

c:> grep "hell[ o]" filename

which would give all instances of the string "hell" or "hello" in the
specified file.
Silly example but its worth checking out.

rgds
Conrad

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019