X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:mime-version:in-reply-to:references:date
	:message-id:subject:from:to:content-type; q=dns; s=default; b=uE
	qAKkdlhzAe8xp2Vxhs0JFwVw/ipCU8fKmARI41IpUxuX/1XbmATZ+EMiik2LSgnR
	eoZoo4VgOvvidUBEEe74DXAZORXqmpYazqVwhmf2QvsNrE0NjqJiSV1utmOyD/sc
	9GYhfbZIRTyxSfhri6eCXl8B4652OQQP62jOfNaFc=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:mime-version:in-reply-to:references:date
	:message-id:subject:from:to:content-type; s=default; bh=B9TYCVwW
	7z0Bf2hhTFi64vbI4/M=; b=R6FtzEMxWEH5VTA2yWTfyVXLoj1pfvgljvKG4GGP
	IoX9oTdG/17Pvx0COsLwc7nl9kxO0y8a+swiz96TiyOE6ZYLnX9NH2pZRibPub9e
	smjSLWCcanPjJ39fSr8YrzhQ0c6kVdqQsr/vJSCZqUnwoNPwvFmHBoUQx29l3c/X
	0PE=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=0.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-lb0-f173.google.com
MIME-Version: 1.0
X-Received: by 10.112.184.137 with SMTP id eu9mr11172340lbc.21.1448291477510; Mon, 23 Nov 2015 07:11:17 -0800 (PST)
In-Reply-To: <5653288B.5040004@cs.umass.edu>
References: <CAE3taFC=tjki1FTfbjyt+KnEGsWmrj63FMeBjgRswRwRSKdAWQ@mail.gmail.com>	<CAE3taFBJZx+-Mok3Cch2uv+rMqUCDmJsvwfW6fWp0x_6EvDVtA@mail.gmail.com>	<5653288B.5040004@cs.umass.edu>
Date: Mon, 23 Nov 2015 15:11:17 +0000
Message-ID: <CAE3taFDf5EYzp1qJEzBgvh+Z6KCdJvpSjqLCw0WnshACxBmjxA@mail.gmail.com>
Subject: Re: Awk not ouputting results via echo
From: Lester Anderson <arctica1963@gmail.com>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=UTF-8
X-IsSubscribed: yes

Hello,

The img2grd program is a Windows code. The script is using the GMT
software that is freely available, and accessed via Cygwin; can also
work via standard windows batch files to a more restricted degree.

The Windows path definition worked fine, thanks for that

The issue seems to be getting the variables calculated via awk into
the region definition (R). The awk version under Cygwin is Gawk, and
it appears to run without issue, although I cannot get the values out
to check the calculation. The echo command does not give any output.
Awk has to be used as bash does not work with floating point numbers
as far as I can see.

I am slowly working my way through a published script to get it running.

Lester

On 23 November 2015 at 14:54, Eliot Moss <moss@cs.umass.edu> wrote:
> If img2grd is a Windows program, then you probably want to
> use cygpath to convert to a suitable Windows path name.  I
> think the forward slashes *may* work, but Windows generally
> does backslashes.
>
> If img2grd is a cygwin program, you may have greater success
> doing /cygdrive/q than using Q: ...
>
> In short, Windows style pathnames for Windows programs,
> cygwin style pathnames for cygwin program :-) ...
>
> Regards -- Eliot Moss

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

