顯示廣告
隱藏 ✕
看板 Anonymous
作者 厚修回渾.
標題 Re: 97格鬥天王紀錄
時間 2023-09-07 Thu. 23:06:16




  1 Script started on Thu 07 Sep 2023 10:46:09 PM CST
    2 diff -ur tmp.af_viewed.2023.0629.1915/allpost.sh tmp.af_viewed.2023.0629.1915.bak/allpost.sh^M
    3 --- tmp.af_viewed.2023.0629.1915/allpost.sh     2023-07-21 22:01:46.587617306 +0800^M
    4 +++ tmp.af_viewed.2023.0629.1915.bak/allpost.sh 2023-07-02 00:47:52.297853313 +0800^M
    5 @@ -17,7 +17,6 @@^M
    6  done^M
    7  }^M
    8  ^M


--

   8  ^M
    9 -# if this is ok. the md5 step is almost ok too^M
   10  tmp2(){^M
   11  i=1575^M
   12  while [ $i -le 3062 ]^M
   13 @@ -33,140 +32,46 @@^M
   14  grep 'href.*bbs.*M.*html' 1575.html|wc^M
   15  This is Comment^M
   16  ^M

  17 -<<'This is Comment'^M
   18 -rm /tmp/error.log^M
   19 -^M
   20  for i in $( ls -v|grep html )^M
   21 -^M
   22  do^M
   23 +author_counts=$(grep 'div class="author' $i.html |wc)^M
   24 +date_counts=$(grep 'div class="date' $i.html |wc )^M
   25 +title_counts=$(grep 'href.*bbs.*M.*html' $i.html|wc )^M
   26  ^M
   27 -author_counts=$(grep 'div class="author' $i |wc|awk '{ print $1 }')^M
   28 -date_counts=$(grep 'div class="date' $i |wc|awk '{ print $1 }' )^M
   29 -title_counts=$(grep 'href.*bbs.*M.*html' $i|wc|awk '{ print $1 }' )^M
   30 -^M
   31 -echo $author_counts $date_counts $title_counts >> /tmp/error.log^M
   32 -^M
   33 -done^M
   34 -This is Comment^M
   35 -^M
   36 -^M


※ 編輯: 厚修回渾 時間: 2023-09-07 23:32:26 (台灣)
※ 看板: Anonymous 文章推薦值: 0 目前人氣: 0 累積人氣: 1 
r)回覆 e)編輯 d)刪除 M)收藏 ^x)轉錄 同主題: =)首篇 [)上篇 ])下篇