MacOSのシェルスクリプトです。
homo
#!/usr/local/bin/homo
curl -s "http://www.hottomotto.com/menu/list/index.php?id=1" | grep 'class="name"' | cut -d'>' -f3 | cut -d'<' -f1 | sed -n "`expr $(expr $RANDOM % 47) + 1`p"
@cupnesにもらいました。改造して使ってください。
More than 5 years have passed since last update.
MacOSのシェルスクリプトです。
#!/usr/local/bin/homo
curl -s "http://www.hottomotto.com/menu/list/index.php?id=1" | grep 'class="name"' | cut -d'>' -f3 | cut -d'<' -f1 | sed -n "`expr $(expr $RANDOM % 47) + 1`p"
@cupnesにもらいました。改造して使ってください。
Register as a new user and use Qiita more conveniently