How to select modules in linear grid?

Hi I want to selesct modules linear not in sphere like on image bellow.