Strange! I am working on HP-Unix and I am pretty sure the solution should work this way, but for some reason it is not!
---------- Post updated at 01:18 AM ---------- Previous update was at 01:16 AM ----------
oh ok.. I know now.I thought it was actually deleting it from the main file , but it was just printing.Is there a way out for the same or I have to put it another temp file and rename it.
Another tempfile.
then cat the tmp file into the original file instead renaming it, so that it will not be "inode destructive"
(with mv command, you would loose the inode of the target file)