How to remove blank lines of a file in mapping script

Hi Team,

Is there any function to remove blank lines from a file( same as Trim function) which can be used in mapping script.

Regards,

Sridhara.