Obviously grep can't handle \d on linux. Use [0-9] instead.