Rippling modes in the edge of a tokamak plasma