We propose a novel linear filtering scheme based on ultrafast all-optical differentiation for re-shaping of ultrashort pulses generated from a mode-locked laser into flat-top pulses. The technique is demonstrated using simple all-fiber optical filters, more specifically uniform long period fiber gratings (LPGs) operated in transmission. The large bandwidth typical for these fiber filters allows scaling the technique to the sub-picosecond regime. In the experiments reported here, 600-fs and 1.8-ps Gaussian-like optical pulses (@ 1535 nm) have been re-shaped into 1-ps and 3.2-ps flat-top pulses, respectively, using a single 9-cm long uniform LPG.