![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Remove the contents of a file without deleting the file | sumesh.abraham | Shell Programming and Scripting | 10 | 12-02-2006 02:35 PM |
| remove the contents of a file | surjyap | SUN Solaris | 2 | 03-02-2006 01:02 PM |
| Creating file contents using contents of another file | ReV | Shell Programming and Scripting | 21 | 02-24-2006 07:25 AM |
| accidentally remove the contents of /var/sadm/pkg | stancwong | UNIX for Dummies Questions & Answers | 11 | 01-04-2006 05:25 PM |
| Remove contents of directory, but not directory | pdc | Shell Programming and Scripting | 8 | 12-04-2005 10:57 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Query:just need to remove the contents of the file without deleting that
Hii,
Please suggest me how can i only remove the contents of the file without deleting it. |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
Hi,
The below will delete the contents of the file without deleting the file. Code:
> filename Chella |
|
#3
|
|||
|
|||
|
Do you mean you want to make a file zero bytes long?
Edit: looks like Chella has you covered |
|
#4
|
|||
|
|||
|
Please do search
How to empty a file without removing it. Time taken to search < (always) time taken to post -- MM's axiom |
|||
| Google The UNIX and Linux Forums |