shell 实现txt转换成html
[*] # !/bin/sh
[*]
[*] file_input='txt.log'
[*] file_output='txt2html.html'
[*]
[*] td_str=''
[*]
[*] function create_html_head(){
[*] echo -e "
[*]
[*] $file_input"
[*] }
[*]
[*] function create_table_head(){
[*] echo -e ""
[*] }
[*]
[*] function create_td(){
[*] # if [ -e ./"$1" ]; then
[*] echo $1
[*] td_str=`echo $1 | awk 'BEGIN{FS="|"}''{i=1; while(i
页:
[1]