Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #2475

testing operating system

From Anton Puhlwetter <anton.puhlwetter@web.de>
Newsgroups comp.graphics.apps.gnuplot
Subject testing operating system
Date 2014-05-29 18:20 +0200
Organization albasani.net
Message-ID <lm7mnj$bj0$1@news.albasani.net> (permalink)

Show all headers | View raw


Hi,

I have a gnuplot script that loads commands dynamically from awk:

load "<awk '$1>$2 {print ...}' < file.txt"

This works fine on Linux, but the ">" in "$1>$2" needs to be escaped as "^>" on Windows. 

Unfortunately, this script is used on both operating systems, and it is not useful to maintain two versions, as this script is stored in a vcs.

Hence, I have to decide dynamically which OS I use. Is this possible with gnuplot? E.g., a global variable that stores the OS (I haven't found any).

Thanks for your help,
Anton

Back to comp.graphics.apps.gnuplot | Previous | NextNext in thread | Find similar | Unroll thread


Thread

testing operating system Anton Puhlwetter <anton.puhlwetter@web.de> - 2014-05-29 18:20 +0200
  Re: testing operating system Ethan A Merritt <sfeam@users.sourceforge.net> - 2014-05-29 14:58 -0700
    Re: testing operating system Anton Puhlwetter <anton.puhlwetter@web.de> - 2014-05-31 12:15 +0200

csiph-web