3 set TOPFILE
= include_top.html
4 set BOTFILE
= include_bot.html
12 echo Will process
$FILES
14 foreach
file ( $FILES )
15 if ( ($file != "$TOPFILE") && ($file != "$BOTFILE") ) then
18 grep -v "<\!--I-->" $file >! tmp1
20 set body
= `grep -i "<body" tmp1 | wc -l`
23 grep -i "<TITLE>" tmp1
>! tmp
25 awk '{ printf "<\!--I-->%s\n", $0 }' $TOPFILE >> tmp
26 grep -v -i "<TITLE>" tmp1
>> tmp
27 awk '{ printf "<\!--I-->%s\n", $0 }' $BOTFILE >> tmp
30 awk '{ if (($1=="<body>")||($1=="<BODY>")||\
31 ($1=="<body" )||($1=="<BODY" )) {\
32 printf "<BODY text=\"#243b4a\" BGCOLOR=\"#FFFFFF\">\n";\
35 printf "%s\n", $0; }' tmp1
>! tmp
37 awk '{ printf "<\!--I-->%s\n", $0 }' $TOPFILE >> tmp
39 awk '{ if (($1=="</body>")||($1=="</BODY>")) exit; \
40 if (doit==1) printf "%s\n", $0; \
41 if (($1=="<body>")||($1=="<BODY>")||\
42 ($1=="<body" )||($1=="<BODY" )) doit=1; }' tmp1
>> tmp
44 awk '{ printf "<\!--I-->%s\n", $0 }' $BOTFILE >> tmp
46 awk '{ if (($1=="</body>")||($1=="</BODY>")) doit=1; \
47 if (doit==1) printf "%s\n", $0; }' tmp1
>> tmp
50 if ( -f \
#$file\# ) \rm \#$file\#