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

Re: [NTS] Re: Redirecting GAWK Output

Expand Messages
  • Kees Nuyt
    ... PRINT is not the same as print . gawk is case-sensitive. -- Regards, Kees Nuyt
    Message 1 of 16 , May 17, 2012
    • 0 Attachment
      On Mon, 14 May 2012 16:17:09 -0000, you wrote:

      > Why don't I see the lines output by PRINT?
      >
      >
      > GAWK Subroutine called in NT clip:
      > This leaves all the original document lines followed by 16 on the last line. All text is selected by clip.
      > # Find size of longest line
      > {
      > print $0
      > if (length($0) > max) { max = length($0) }
      > }
      > END { print max }
      >
      >
      > SCRIPT.AWK
      > ----------
      > # Find size of longest line
      > {
      > PRINT $0
      > if (length($0) > max) { max = length($0) }
      > }
      > END { print max }

      PRINT is not the same as print .
      gawk is case-sensitive.


      --
      Regards,

      Kees Nuyt
    Your message has been successfully submitted and would be delivered to recipients shortly.