arakawatomonori / covid19-surveyor

主要省庁と都道府県や自治体の経済支援制度をまとめる
https://help.stopcovid19.jp/
Do What The F*ck You Want To Public License
42 stars 18 forks source link

xargs の並列数が不正 #2

Closed takano32 closed 4 years ago

takano32 commented 4 years ago

0 になってる。

$ ./wget.sh
xargs: max. processes must be >0
./wget.sh: line 10: ./grep.sh: No such file or directory
./index.sh: line 48: -1: substring expression < 0
takano32 commented 4 years ago
$ LANG=C wget --version
GNU Wget 1.20.3 built on darwin19.0.0.

-cares +digest -gpgme +https +ipv6 +iri +large-file -metalink +nls
+ntlm +opie -psl +ssl/openssl

Wgetrc:
    /usr/local/etc/wgetrc (system)
Locale:
    /usr/local/Cellar/wget/1.20.3_2/share/locale
Compile:
    clang -DHAVE_CONFIG_H -DSYSTEM_WGETRC="/usr/local/etc/wgetrc"
    -DLOCALEDIR="/usr/local/Cellar/wget/1.20.3_2/share/locale" -I.
    -I../lib -I../lib -I/usr/local/opt/openssl@1.1/include -DNDEBUG -g
    -O2
Link:
    clang -DNDEBUG -g -O2 -lidn2 -L/usr/local/opt/openssl@1.1/lib -lssl
    -lcrypto -ldl -lz ftp-opie.o openssl.o http-ntlm.o ../lib/libgnu.a
    -liconv -lintl -Wl,-framework -Wl,CoreFoundation -lunistring

Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://www.gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Originally written by Hrvoje Niksic <hniksic@xemacs.org>.
Please send bug reports and questions to <bug-wget@gnu.org>.
takano32 commented 4 years ago

GNIU の wget で動くようになりました。

$ brew install findutils
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> Updated Formulae
vim ✔
==> Updated Casks
tiger-trade                                                        yandex-disk

==> Downloading https://homebrew.bintray.com/bottles/findutils-4.7.0.catalina.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/f9/f9ba06f4d48275e8cab659450b05e77873e909f31104df450201a83d465ed1ca?__gda__=exp=1586
######################################################################## 100.0%
==> Pouring findutils-4.7.0.catalina.bottle.tar.gz
==> Caveats
All commands have been installed with the prefix "g".
If you need to use these commands with their normal names, you
can add a "gnubin" directory to your PATH from your bashrc like:
  PATH="/usr/local/opt/findutils/libexec/gnubin:$PATH"
==> Summary
🍺  /usr/local/Cellar/findutils/4.7.0: 32 files, 1.7MB
takano32 commented 4 years ago

s/wget/xargs/g