|
-
November 12th, 2009, 11:33 AM
#1
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
-
November 12th, 2009, 11:58 AM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|