code:shell:fetchpm25
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| code:shell:fetchpm25 [2015/01/21 05:44] – percy | code:shell:fetchpm25 [2016/05/05 13:07] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| So have fun. | So have fun. | ||
| + | |||
| + | Before you can run it, you need install " | ||
| + | apt-get install dos2unix | ||
| Line 17: | Line 20: | ||
| OUTPUT_TMP=" | OUTPUT_TMP=" | ||
| wget http:// | wget http:// | ||
| - | ALL_URLS=`cat ${RAW_HTML}|grep " | + | ALL_URLS=`cat ${RAW_HTML}|grep " |
| ALL_CITY=`echo " | ALL_CITY=`echo " | ||
| echo " | echo " | ||
| Line 31: | Line 34: | ||
| i=" | i=" | ||
| url=`echo " | url=`echo " | ||
| - | city=`echo " | + | city=`echo " |
| pingyin=`echo " | pingyin=`echo " | ||
| #echo " | #echo " | ||
/var/www/dokuwiki/wiki/data/attic/code/shell/fetchpm25.1421790270.txt.gz · Last modified: (external edit)
