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

เนื้อหาที่ลบ เนื้อหาที่เพิ่ม
Ans (คุย | ส่วนร่วม)
wget
Ans (คุย | ส่วนร่วม)
wget
บรรทัด 21:
* $ <source lang=bash>set -- https://www.thairath.co.th/content/392{859..000} ; while (( $# > 0 )) ; do wget -qO- "$1" | grep -m1 -i -o '<title>.*เมนู[^<]*<.......' && echo "$1" ; shift ; done</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>.*เมนู[^<]*<.......' && echo "$1" ; shift ; done</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>[^<]*<.......' && echo "$1" ; shift ; done | grep -i -A1 '^<title>.*เมนู[^<]*<.......'</source>
 
== convert date to <nowiki>{{start date|...}}</nowiki> for ==