zi663227 发表于 2018-8-29 11:21:20

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]
查看完整版本: shell 实现txt转换成html