Menu

Saving Interactive Session to batch file

Help
2019-06-08
2019-06-09
  • Coleman Blake

    Coleman Blake - 2019-06-08

    Let's say I'm working on a graph from the command line and have it just about right.

    How do I save what I've done that I call edit so I don't have to retype the whole thing.

    I know this has been answered, but I've just spent several hour trying to find out where.

    C.

     
    • Ethan Merritt

      Ethan Merritt - 2019-06-09

      On Saturday, 08 June 2019 21:15:14 Coleman Blake wrote:

      Let's say I'm working on a graph from the command line and have it just about right.

      How do I save what I've done that I call edit so I don't have to retype the whole thing.

      I know this has been answered, but I've just spent several hour trying to find out where.

      C.

      I may not understand the question, but the obvious answer is "save <filename>".
      This dumps the current state of the program including the most recent plot
      command. If you later run gnuplot and say "load <filename>" it will re-create
      the plot you saved.</filename></filename>

      There is an auxilliary script named "gpsavediff" that you can run to
      reduce the size of the saved command file. It compares the saved commands with
      the default state and only keeps those that are changes from the default.

      gpsavediff < full_save_file > minimal_save_file
      
          Ethan
      

      --
      entia non sunt multiplicanda praeter necessitatem

       
  • Bastian Märkisch

    You are looking for the 'history' command. see help history.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.