delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <ca5781c80708272016n5c54c3d3k3619f24cc482a42c@mail.gmail.com> |
Date: | Mon, 27 Aug 2007 23:16:12 -0400 |
From: | yitzle <yitzle AT users DOT sourceforge DOT net> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: External script to filter text blocks |
In-Reply-To: | <e660b2250708261216s26bd0ed9sa9357d85ae451680@mail.gmail.com> |
MIME-Version: | 1.0 |
References: | <e660b2250708261216s26bd0ed9sa9357d85ae451680 AT mail DOT gmail DOT com> |
X-Google-Sender-Auth: | 02cce14369f5e2f9 |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id l7S3GO0w024251 |
On 8/26/07, Carlos Narváez <crakup AT gmail DOT com> wrote: > I want to make a customizable external script to filter text blocks. > > I know this is possible, but I'm not sure how to call the script (how > much of the path to specify, or where to store the script), or how to > get standard input into the file (in the case of php). > > I'm using cygwin on windows > > So instead of the oft mentioned > > :! sort > > I want to do something like this: > > :! filter_file arg1 arg2... > > Can anyone lend a hand, or point me to a good resource on this? I've > looked all over and only get the :! sort example everywhere. You can write your own fairly easily. Some tools that come to mind are sed, awk, grep, and perl If you can be more specific, you might get a more useful reply. -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |