The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 02-10-2009
praka praka is offline
Registered User
  
 

Join Date: Feb 2009
Posts: 18
Post Removing the entire file contents using unix shell script.

I need to remove the entire file contents in file using the shell script.

Actually the grap -v command will create one more file and it occupy the space also.

I need to remove the entire file contents without creating new file using the shell scripting.

Please help me.

Last edited by praka; 02-10-2009 at 02:58 AM.. Reason: changed the title.