code:shell:fetchpm25
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| code:shell:fetchpm25 [2015/01/20 21:44] – percy | code:shell:fetchpm25 [2015/01/22 17:24] (current) – percy | ||
|---|---|---|---|
| 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)
