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

เนื้อหาที่ลบ เนื้อหาที่เพิ่ม
Ans (คุย | ส่วนร่วม)
+partial wget output {751092..786647}
Ans (คุย | ส่วนร่วม)
+partial wget output
บรรทัด 386:
https://www.thairath.co.th/content/381900
https://www.thairath.co.th/content/381898 not shift 100 ; <title>errorเมนู</title>
</source>
** $ <source lang=bash>set -- https://www.thairath.co.th/content/38{1899..0000} ; while (( $# > 0 )) ; do echo "$1" | grep '00$' ; { wget -t1 -qO- "$1" || echo '<title>errorเมนู</title>' ; } | grep -m1 -i -o '<title>.*<.......' | grep -m1 -i -o '<title>.*เมนู[^<]*<.......' | perl -ple 'BEGIN{$u=pop@ARGV;$|=1}s?\A<title>.*error? not shift 100 ; $&?i or$e=1; END{exit$e} $_="$u $_"' -- "$1" || shift 99 ; shift ; done ; echo done</source>
*** output: <source lang=text>
https://www.thairath.co.th/content/381898 not shift 100 ; <title>errorเมนู</title>
https://www.thairath.co.th/content/381874 not shift 100 ; <title>errorเมนู</title>
https://www.thairath.co.th/content/381873 not shift 100 ; <title>errorเมนู</title>
https://www.thairath.co.th/content/381872 not shift 100 ; <title>errorเมนู</title>
</source>
** $ <source lang=bash></source>