Loading ...
Sorry, an error occurred while loading the content.

556Re: [NTS] Redirecting GAWK Output

Expand Messages
  • mycroftj
    May 14, 2012
      --- In ntb-scripts@yahoogroups.com, "flo.gehrke" <flo.gehrke@...> wrote:
      > ;[path to exe]
      > ^!Set %lua%=
      > ;[path to the script]
      > ^!Set %script%=
      > ;[text to process, e.g. ^$GetSelection$, ^$GetClipboard$]
      > ^!Set %input%=
      > ^!InsertText ^$GetOutput(^%lua% "^%script%" "^%input%")$
      > I tried to reproduce this with GAWK but I can't get it to work. For me, GAWK doesn't seem to accept the input from that ^%input% variable.
      > It works when getting the input from a file:
      > ^!Info ^$GetOutput(^$GetGawkExe$ -f ^$GetScriptPath$script.awk ^$GetDocumentPath$input.txt)$
      > Regards,
      > Flo

      Did you ever get an answer to this part of this problem???
      I think the problem here is the missing '-f' in the InsertText statement. Looks like it should be
      ^!InsertText ^$GetOutput(^%lua% -f "^%script%" "^%input%")$

    • Show all 16 messages in this topic