shell script
git/contrib/completion at master · git/git · GitHub ここにある。やるべきことはスクリプト内に全部書いてあるが、一応自分用にメモ。 git-completion.bash と git-prompt.sh をそれぞれ .git-completion.bash と .git-prompt.sh の名前で ~/ に保存する…
普通に考えると wait かな、って思うんだけど、けっこう前に走らせたジョブがあって、という場合、 [pid] is not a child of this shell とか怒られてうまくいかない。いろいろググったところ、なんと tail を使えというお言葉が…: bash - WAIT for "any pr…
前提 Cygwin の pbzip2(デフォルトだと入ってない) bash (なので、たぶん Linux でも同様にできるはず) サンプルコード $ for file in *.dat; do pbzip2 -m1000 -ck "${file}" > "/cygdrive/f/path_to_dir/${file}.bz2"; done & オプションは、-c はたぶ…