ผลต่างระหว่างรุ่นของ "ผู้ใช้:Ans/script"

เนื้อหาที่ลบ เนื้อหาที่เพิ่ม
Ans (คุย | ส่วนร่วม)
wget
Ans (คุย | ส่วนร่วม)
+partial wget output
บรรทัด 23:
** $ <source lang=bash>set -- https://www.thairath.co.th/content/392{859..000} ; while (( $# > 0 )) ; do { wget -t1 -qO- "$1" || echo '<title>errorเมนู</title>' ; } | grep -m1 -i -o '<title>[^<]*<.......' && echo "$1" ; shift ; done | grep -i -A1 '^<title>.*เมนู[^<]*<.......'</source>
** $ <source lang=bash>set -- https://www.thairath.co.th/content/392{859..000} ; while (( $# > 0 )) ; do { wget -t1 -qO- "$1" || echo '<title>errorเมนู</title>' ; } | grep -m1 -i -o '<title>.*<.......' | grep -m1 -i -o '<title>.*เมนู[^<]*<.......' && echo "$1" ; echo "$1" | grep '00$' ; shift ; done ; echo done</source>
*** output: <source lang=text>
<title>เมนูทีวี 01/01/57</title>
https://www.thairath.co.th/content/392858
https://www.thairath.co.th/content/392800
<title>เมนูทีวี 31/12/56</title>
https://www.thairath.co.th/content/392721
https://www.thairath.co.th/content/392700
<title>errorเมนู</title>
https://www.thairath.co.th/content/392640
https://www.thairath.co.th/content/392600
<title>เมนูทีวี 30/12/56</title>
https://www.thairath.co.th/content/392591
</source>
 
== convert date to <nowiki>{{start date|...}}</nowiki> for ==