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


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

Re: using gnuplot to modify table

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail
From Hermann Peifer <peifer@gmx.eu>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: using gnuplot to modify table
Date Wed, 01 Feb 2012 08:16:53 +0100
Organization albasani.net
Lines 27
Message-ID <jgaot5$94m$1@news.albasani.net> (permalink)
References <d70045ad-6f76-40de-bc79-bfc4ee70ecdc@q8g2000yqa.googlegroups.com> <jg8omv$i3b$1@news.albasani.net> <880466b6-f7d4-4263-b793-9eb271763192@z31g2000vbt.googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Trace news.albasani.net d3pDooiPDfZWDAXgqYxX+yWDCjkZE8GCDmsGYMsz1kbx1aAfAQJDYew9FmgyNOXdbx0flZeoFO8Mtmt/OMNfaw==
NNTP-Posting-Date Wed, 1 Feb 2012 07:16:53 +0000 (UTC)
Injection-Info news.albasani.net; logging-data="U33FZRlCY438/KJ8G9eDUgNBPZZgVYfE+dc/Qer7P3o3EaNlYs00N8a36lucwvuzJxMY0moEYakB46tESx+7YNDsb6uxE32+UAUjPZslcaB5ESY1LwVg1kzA7oz28r0o"; mail-complaints-to="abuse@albasani.net"
User-Agent Mozilla/5.0 (Windows NT 5.1; rv:9.0) Gecko/20111222 Thunderbird/9.0.1
In-Reply-To <880466b6-f7d4-4263-b793-9eb271763192@z31g2000vbt.googlegroups.com>
Cancel-Lock sha1:QjyD+RkVfdHVtLXa75NxCwfMe6c=
Xref x330-a1.tempe.blueboxinc.net comp.graphics.apps.gnuplot:885

Show key headers only | View raw


On 31/01/2012 22:12, Jean Dupont wrote:
> On 31 jan, 14:01, Hermann Peifer<pei...@gmx.eu>  wrote:
>> On 31/01/2012 10:26, Jean Dupont wrote:
>>
>>> Is it possible to use gnuplot to manipulate a table as follows:
>>
>>> This is the format of the original table:
>>> textstring columnvalue1 columnvalue2 columnvalue3
>>
>>> I want the new table like this:
>>> columnvalue3 columnvalue1 columnvalue2
>>
>> system( "awk '{print $4,$2,$3}' originaltable.dat>  output.dat" )
>>
>> Hermann
>
> thanks even though gnuplot isn't involved as such
>

Hmm. system() is a gnuplot function

gnuplot> help system

`system "command"` executes "command" using the standard shell. See `shell`.
If called as a function, `system("command")` returns the resulting character
stream from stdout as a string...

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

using gnuplot to modify table Jean Dupont <jeandupont115@gmail.com> - 2012-01-31 01:26 -0800
  Re: using gnuplot to modify table Hermann Peifer <peifer@gmx.eu> - 2012-01-31 14:01 +0100
    Re: using gnuplot to modify table Jean Dupont <jeandupont115@gmail.com> - 2012-01-31 13:12 -0800
      Re: using gnuplot to modify table Hermann Peifer <peifer@gmx.eu> - 2012-02-01 08:16 +0100
        Re: using gnuplot to modify table Jean Dupont <jeandupont115@gmail.com> - 2012-02-01 12:08 -0800
  Re: using gnuplot to modify table Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2012-01-31 22:29 +0100
    Re: using gnuplot to modify table Jean Dupont <jeandupont115@gmail.com> - 2012-02-01 12:02 -0800
      Re: using gnuplot to modify table Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2012-02-01 22:57 +0100
        Re: using gnuplot to modify table Jean Dupont <jeandupont115@gmail.com> - 2012-02-02 03:42 -0800
          Re: using gnuplot to modify table Christoph Bersch <usenet@bersch.net> - 2012-02-02 13:16 +0100
            Re: using gnuplot to modify table Jean Dupont <jeandupont115@gmail.com> - 2012-02-02 11:10 -0800

csiph-web