Click to See Complete Forum and Search --> : Help using AWK and Janotech


gammaman
November 12th, 2009, 10:33 AM
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

jcaccia
November 12th, 2009, 10:58 AM
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.