Cosmic ray spectrum and anisotropies from the knee to the second knee