<DIV> </DIV> <DIV>Guys thanks for your comments. It is solved. </DIV> <DIV> </DIV> <DIV>The main problem was my fault! sometimes for debugging purpose, I pass a command as argument to echo to see how it is formatted during run-time, like:</DIV> <DIV> </DIV> <DIV>echo "cut -f 2 file1.tmp | grep DB | awk ' {print $0} ' | cut -f 1-2 -d, > file2.tmp"</DIV> <DIV>cut -f 2 file1.tmp | grep "DB" | awk ' {print $0} ' | cut -f 1-2 -d, > file2.tmp</DIV> <DIV> </DIV> <DIV>so while run-time the first line was displaying:</DIV> <DIV> awk ' { print "TheScriptFileName" } ' </DIV> <DIV> </DIV> <DIV>but the second line which was the real code was working fine. However, even for such situations if I do print $_ that works in both lines and name of the script file will not be displayed.</DIV> <DIV> </DIV> <DIV>Sorry for any inconvenience I might have made.</DIV>
<DIV> </DIV> <DIV>Thanks,</DIV> <DIV>R</DIV><p> 
                <hr size=1>Get your email and more, right on the <a href="http://us.rd.yahoo.com/evt=42973/*http://www.yahoo.com/preview"> new Yahoo.com</a>