X-Spam-Check-By: sourceware.org
Message-ID: <ca5781c80708272016n5c54c3d3k3619f24cc482a42c@mail.gmail.com>
Date: Mon, 27 Aug 2007 23:16:12 -0400
From: yitzle <yitzle@users.sourceforge.net>
To: cygwin@cygwin.com
Subject: Re: External script to filter text blocks
In-Reply-To: <e660b2250708261216s26bd0ed9sa9357d85ae451680@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Disposition: inline
References: <e660b2250708261216s26bd0ed9sa9357d85ae451680@mail.gmail.com>
X-Google-Sender-Auth: 02cce14369f5e2f9
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id l7S3GO0w024251

On 8/26/07, Carlos Narváez <crakup@gmail.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/


