3 awk -v path=$PATH_INFO '
6 print "Content-type: text/plain\n \
7 You'\''ve reached Armaan'\''s link shortner. Not much to see here on the index"
14 printf "Content-type: text/html\n \
15 <!DOCTYPE html><html lang=\"en\"><head> \
16 <meta http-equiv=\"refresh\" content=\"0; URL=%s\"> \
18 <p>If you are not redirected automatically, please follow this link: \
19 <a href=\"%s\">%s</a>.</p> \
20 </body></html>\n", $2, $2, $2
28 Content-type: text/plain\n \