<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;">Vijay&gt;&nbsp; &nbsp;  perl -0777 -pi -e 's/^SQL&gt;//mg; s/\n{2,}/\n\n/g' inputfile<br>Vijay&gt;&nbsp; &nbsp;  cat inputfile | mailx ....<br><br>Why do people use a useless cat?<br><br>I think they are Perlists from Windows' world, who should read some books about UNIX, such as Learning the UNIX Operating System, UNIX Power Tools, etc<br></div></div></div></body></html>