public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Lester Anderson <arctica1963@gmail.com>
To: cygwin@cygwin.com
Subject: Re: Awk not ouputting results via echo
Date: Mon, 23 Nov 2015 15:11:00 -0000	[thread overview]
Message-ID: <CAE3taFDf5EYzp1qJEzBgvh+Z6KCdJvpSjqLCw0WnshACxBmjxA@mail.gmail.com> (raw)
In-Reply-To: <5653288B.5040004@cs.umass.edu>

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

  parent reply	other threads:[~2015-11-23 15:11 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-23 13:17 Lester Anderson
2015-11-23 14:00 ` Lester Anderson
     [not found]   ` <5653288B.5040004@cs.umass.edu>
2015-11-23 15:11     ` Lester Anderson [this message]
2015-11-24 18:32       ` cyg Simple
2015-11-23 14:42 ` cyg Simple
2015-11-23 15:23 ` Eliot Moss
2015-11-23 16:24   ` Lester Anderson
2015-11-23 16:44     ` Lester Anderson
2015-11-23 16:53     ` Eliot Moss
2015-11-23 20:41 ` Lee
2015-11-24 10:54   ` Lester Anderson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAE3taFDf5EYzp1qJEzBgvh+Z6KCdJvpSjqLCw0WnshACxBmjxA@mail.gmail.com \
    --to=arctica1963@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).