Two-stage linear-nonlinear shaping of an optical frequency comb as rogue nonlinear-Schrodinger-equation-solution generator