X-Spam-Check-By: sourceware.org Message-ID: Date: Mon, 27 Aug 2007 23:16:12 -0400 From: yitzle To: cygwin AT cygwin DOT com Subject: Re: External script to filter text blocks In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline References: X-Google-Sender-Auth: 02cce14369f5e2f9 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 l7S3GO0w024251 On 8/26/07, Carlos Narváez 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/