2013-04-14 continuous_tweet.sh regular shell 引数をつぶやくrubyスクリプトを用意しておく。 #!/bin/zsh num=100 while getopts "n:" opts do case $opts in n) num=$OPTARG ;; esac done shift $((OPTIND-1)) str=''; for ((i=0;i<$num;i++)); do ruby $HOME/.emacs.d/elisp/emacs_tweet.rb "$1"$str ; str=$str' '; done