看板 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 (台灣)
※ 同主題文章:
06-21 19:57 □ 6/21紀錄
… ×945
09-07 22:41 Re 97格鬥天王紀錄
09-07 22:42 Re 97格鬥天王紀錄
09-07 22:54 Re 97格鬥天王紀錄
09-07 22:57 Re 97格鬥天王紀錄
09-07 23:00 Re 97格鬥天王紀錄
● 09-07 23:06 Re 97格鬥天王紀錄
09-07 23:38 Re 97格鬥天王紀錄
09-08 18:55 □ 98格鬥天王紀錄
09-09 21:52 □ 99格鬥天王紀錄
09-09 22:37 Re 99格鬥天王紀錄
09-10 02:29 Re 99格鬥天王紀錄
… ×1997
※ 看板: Anonymous 文章推薦值: 0 目前人氣: 0 累積人氣: 1
回列表(←)
分享