Spectral shaping in a multimode fiber by all-fiber modulation