CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2006
    Location
    Wantagh,NY
    Posts
    151

    Help using AWK and Janotech

    I am using Janotech which is a UNIX shell for Windows
    I have a file that I need to add a heading to and then print out the contents of the file with the heading to the screen. I am trying to use the following awk command and when I hit enter it jsut returns a flashing cursor on the next line. I do not get any errors and it does not return a $ to the next line.

    Here is the awk command I am using

    awk 'BEGIN {print "THIS IS THE HEADING"}{print}'fstat

  2. #2
    Join Date
    May 2009
    Location
    Lincs, UK
    Posts
    298

    Re: Help using AWK and Janotech

    Is there a space between the closing quote and the file name? If not the file name is understood as being part of the AWK program and, not having a file name to process, it will show a blinking cursor and wait for your input.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured