grep  ref: http://qiita.com/mugyuu/items/db464042da7427c0f5c7