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
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