X-Recipient: archive-cygwin AT delorie DOT 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 AT cygwin DOT com; run by ezmlm List-Id: 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 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: <5653288B DOT 5040004 AT cs DOT umass DOT edu> Date: Mon, 23 Nov 2015 15:11:17 +0000 Message-ID: Subject: Re: Awk not ouputting results via echo From: Lester Anderson To: cygwin AT cygwin DOT 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 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