X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Content-class: urn:content-classes:message Subject: RE: Re: [ANNOUNCEMENT] Updated: sgrep 1.94a-2 -- Search indexed text regions like SGML,XML and HTML files MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Fri, 22 Feb 2008 13:49:21 +0100 Message-ID: <09D9A0202F49264A9F775BAC7F70307977AD0A@miexch01.wksc.local> In-Reply-To: A References: A From: "Peter Ring" To: "zzapper" , X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id m1MCoBrg022049 http://www.cs.helsinki.fi/u/jjaakkol/sgrep.html Last modified: Dec 22,1998 ftp://ftp.cs.helsinki.fi/pub/Software/Local/Sgrep/sgrep-1.94a.tar.gz Latest change (autoconf stuff) 2004-11-19, few substantial changes since 2001. You have been missing sgrep for some years ;) Read the fine manual, useful stuff and examples. Read the source too; some features are almost not documented. If you need to quote a character in a search expression, you can write it sort of like a numerical entity, i.e., '"' is '\#x22;'. Here is another one you have been missing: LT-XML http://www.ltg.ed.ac.uk/software/ltxml http://www.ltg.ed.ac.uk/np/ltxml/xmldoc.html Latest changes in LT-XML in October 2004. Most of the LT-XML utilities could be implemented in XSLT, but they might come in handy anyway. kind regards Peter Ring -----Original Message----- From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com] On Behalf Of zzapper Sent: 22. februar 2008 12:51 To: cygwin AT cygwin DOT com Subject: Re: [ANNOUNCEMENT] Updated: sgrep 1.94a-2 -- Search indexed text regions like SGML,XML and HTML files Hey I needed sgrep all my life, is it recent? some simple examples sgrep -i '("

" .. "

")' index.php sgrep -i '("fred" .. "joe")' essay.txt It gets really useful when you stream it sgrep -i '("fred" .. "joe")' essay.txt | egrep -i 'keyword' -- zzapper http://www.successtheory.com/tips/vimtips.html http://www.successtheory.com/tips/zshtips.html http://www.successtheory.com/tips/cygwintips.php (in progress) -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/