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


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

Re: using gnuplot to modify table

From Hermann Peifer <peifer@gmx.eu>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: using gnuplot to modify table
Date 2012-02-01 08:16 +0100
Organization albasani.net
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>

Show all headers | 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