Google Answers Logo
View Question
 
Q: AWK Question ( No Answer,   0 Comments )
Question  
Subject: AWK Question
Category: Computers > Algorithms
Asked by: questioner1234-ga
List Price: $5.00
Posted: 29 Oct 2003 11:03 PST
Expires: 29 Oct 2003 11:25 PST
Question ID: 270823
I am trying to create an external awk file. I need the file to output
the text to the filename "$4". $4 is a field in the table that has the
filename. How do I fix this:

BEGIN { FS = "\t" }
{print "<html>\n<head>\n<title>",$1,"</title>\n</head>\n<body>\n"
print "\<\!--webbot bot=\"Include\" U-Include=\"../top.htm\"
TAG=\"BODY\" --\>\n<table>\n<tr>\n<td width=\"200\" valign=\"top\">\n"
print "\<\!--webbot bot=\"Include\" U-Include=\"../left-nav.htm\"
TAG=\"BODY\" --\><p>&nbsp;</td>\n"
print "<td>\n<h1>",$1,"</h1>\n"
print "<img src=\"",$5,"\"><br>Price: $",$2
print $7
print "<a href=\"",$6,"\">Order Now</a>","\n",$6,"\n"
print "</td>\n</tr>\n</table>\n</body>\n</html>\n"} > $4
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy