$ curl http://ergoemacs.org/emacs/yow_file_zippy_pinhead_quotes.txt.gz -o yow.lines.gz
$ gzip -c -d yow.lines.gz > yow.lines
$ emacs
M-x customize-group cookie
# customize your "cookie-file" to "yow.lines" path
M-x cookie-doctor # enjoy
From:
$ curl http://ergoemacs.org/emacs/yow_file_zippy_pinhead_quotes.txt.gz -o yow.lines.gz
$ gzip -c -d yow.lines.gz > yow.lines
$ emacs
M-x customize-group cookie
# customize your "cookie-file" to "yow.lines" path
M-x cookie-doctor # enjoy
From:
这个命令一大堆 403 错误,最后得到一个空文件:
/tmp $ wget http://ergoemacs.org/emacs/yow_file_zippy_pinhead_quotes.txt.gz -O yow.lines.gz
--2019-06-20 21:03:38-- http://ergoemacs.org/emacs/yow_file_zippy_pinhead_quotes.txt.gz
Resolving ergoemacs.org (ergoemacs.org)... 74.208.236.186
Connecting to ergoemacs.org (ergoemacs.org)|74.208.236.186|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://ergoemacs.org/403error.html [following]
--2019-06-20 21:03:41-- http://ergoemacs.org/403error.html
Reusing existing connection to ergoemacs.org:80.
HTTP request sent, awaiting response... 302 Found
Location: http://ergoemacs.org/403error.html [following]
--2019-06-20 21:03:41-- http://ergoemacs.org/403error.html
Reusing existing connection to ergoemacs.org:80.
HTTP request sent, awaiting response... 302 Found
Location: http://ergoemacs.org/403error.html [following]
...
20 redirections exceeded.
/tmp $ file yow.lines.gz
yow.lines.gz: empty
/tmp $ ls -s yow.lines.gz
0 yow.lines.gz
/tmp $
但用 curl -O http://ergoemacs.org/emacs/yow_file_zippy_pinhead_quotes.txt.g
没问题。