[awk处理]这是cgi和模板的对应关系

jackxiang 2007-8-22 15:57 | |
cat cpp.txt | awk -F " " '{print $2}' | awk -F "|" '{print "cat "$1"|grep WebMailTmpl >>/tmp/" $1}'


ls -lsa | grep sample | awk '{print $10}' | awk -F ".s" '{print "mv " $1 ".sample "$1}'|sh

==> actions.cpp <==
       WebMailTmpl(tmpl,"actions");

==> addjunk.cpp <==
       CTmpl tmpl;WebMailTmpl(tmpl,"addjunk");


==> autoavset.cpp <==
       WebMailTmpl(tmpl, "autoavset");


==> changeusrpsw.cpp <==
       CTmpl   tmpl;WebMailTmpl(tmpl,"changeusrpsw");

==> chkmsgs.cpp <==
       if(folder=="new") WebMailTmpl(tmpl,"chkmsgs_new");
       else if(folder=="tmp") WebMailTmpl(tmpl,"chkmsgs_tmp");
       else if(folder=="out") WebMailTmpl(tmpl,"chkmsgs_out");
       else if(folder=="cur") WebMailTmpl(tmpl,"chkmsgs_cur");
       else if(folder=="sinajunk") WebMailTmpl(tmpl,"chkmsgs_junk");
       else WebMailTmpl(tmpl,"chkmsgs");

==> chknewmsgs.cpp <==
       WebMailTmpl(tmpl,"chknewmsgs");

==> compose.cpp <==
               WebMailTmpl(tmpl,"mordcompose");
               WebMailTmpl(tmpl,"compose");


==> favorite.cpp <==
       WebMailTmpl(tmpl,"favorite");

==> fax.cpp <==
               WebMailTmpl(tmpl,"send_ok");

==> folder.cpp <==
       CTmpl tmpl;WebMailTmpl(tmpl,"folder_add");
       CTmpl tmpl;WebMailTmpl(tmpl,"folder_add");
       CTmpl tmpl;WebMailTmpl(tmpl,"folder_list");

==> folderfunc.cpp <==
// modi global WebMailTmpl

==> global.cpp <==
void    WebMailTmpl(CTmpl& tmpl,LPCSTR tmplname) {
       WebMailTmpl(tmpl,"alert");
       WebMailTmpl(tmpl,"alert2");

==> junkmail.cpp <==
       WebMailTmpl(tmpl, "junkmail");

==> mail.cpp <==
       WebMailTmpl(tmpl,"sinamail");

==> mailboxinfo.cpp <==
       CTmpl tmpl;WebMailTmpl(tmpl,"mailboxinfo");

==> mailfilter.cpp <==
       CTmpl tmpl;WebMailTmpl(tmpl,"mailfilter");

==> mailrv.cpp <==
       CTmpl tmpl;WebMailTmpl(tmpl,"mailrv");

==> mailwarn.cpp <==
       CTmpl tmpl;WebMailTmpl(tmpl,"warn");


==> pop.cpp <==
       CTmpl  tmpl;WebMailTmpl(tmpl,"pop_add");
       CTmpl tmpl;WebMailTmpl(tmpl,"pop_add");
       CTmpl tmpl;WebMailTmpl(tmpl,"pop_list");

==> prof.cpp <==
       CTmpl tmpl;WebMailTmpl(tmpl,"profile");

==> rdMail.cpp <==
       WebMailTmpl(tmpl, tmplfn);

==> redirect.cpp <==

==> refuse.cpp <==
       CTmpl tmpl;WebMailTmpl(tmpl,"refuse");

==> reply.cpp <==
       CTmpl tmpl;WebMailTmpl(tmpl,"reply");

==> scompose.cpp <==
               WebMailTmpl(tmpl,"smordcompose");
               WebMailTmpl(tmpl,"scompose");

==> search.cpp <==
       WebMailTmpl(tmpl,"search_result");
       WebMailTmpl(tmpl,"search");

==> sendmsg.cpp <==
       WebMailTmpl(tmpl,"draft_save");
               WebMailTmpl(tmpl,"send_ok");

==> setautocc.cpp <==
       CTmpl   tmpl;WebMailTmpl(tmpl,"setautocc");

==> sizeandfilter.cpp <==

==> srdMail.cpp <==
       CTmpl tmpl;WebMailTmpl(tmpl,"smail_body");

==> ssendmsg.cpp <==
               WebMailTmpl(tmpl,"send_ok");

==> ssetting.cpp <==
       WebMailTmpl(tmpl,"ssetting");

作者:jackxiang@向东博客 专注WEB应用 构架之美 --- 构架之美,在于尽态极妍 | 应用之美,在于药到病除
地址:https://jackxiang.com/post/628/
版权所有。转载时必须以链接形式注明作者和原始出处及本声明!


最后编辑: jackxiang 编辑于2007-8-31 13:19
评论列表
发表评论

昵称

网址

电邮

打开HTML 打开UBB 打开表情 隐藏 记住我 [登入] [注册]