delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/09/19/06:31:56

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <af075b00809190331q26768481j5507c71bf9725ce7@mail.gmail.com>
Date: Fri, 19 Sep 2008 11:31:13 +0100
From: "Julio Emanuel" <costaju AT gmail DOT com>
To: bayuadi DOT w AT gmail DOT com, cygwin AT cygwin DOT com
Subject: Re: can't redirect sed command to bash script
In-Reply-To: <48D37BF4.4040604@gmail.com>
MIME-Version: 1.0
References: <48D37BF4 DOT 4040604 AT gmail DOT com>
X-IsSubscribed: yes
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

On Fri, Sep 19, 2008 at 11:16 AM, Bayu Adiwibowo wrote:
>
> Hi
>
> I want using sed and redirect with pipe bash script to produce report
> that sort names by state and list the name of state followed by name of
> each person in that state. It's work in linux as expected but cygwin
> seen can't executed bash script in such way.
>
...
[snip]
...
>
> Bash can't executed with following error
>
> $ sed -f nameState list | byState
> bash: byState: command not found
>

Shouldn't you be using "./byState" (dot-slash)?
Or is your script on PATH?

___________
Julio Costa

--
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/

- Raw text -


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