LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   how to delete the file contents using shell scripts (https://www.linuxquestions.org/questions/linux-software-2/how-to-delete-the-file-contents-using-shell-scripts-447255/)

sharad 05-22-2006 01:28 AM

how to delete the file contents using shell scripts
 
Hello,
I want to delete the line by line code
without using the intermediatory file.

Please help me to do the same.

pronoy 05-22-2006 01:39 AM

I didn't get it.
What and why you want to do ?
It you want to empty a file blindly, just type
$ : > filename

Wim Sturkenboom 05-22-2006 01:43 AM

crosspost
Let's continue in the older one

rshaw 05-26-2006 11:44 AM

Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php

http://www.linuxquestions.org/questi...d.php?t=446927


All times are GMT -5. The time now is 01:54 PM.