![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Filesystems, Disks and Memory Discuss NAS, SAN, RAID, Robotic Libraries, backup devices, RAM, DRAM, SCSI, IDE, EIDE topics here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| search for the contents in many file and print that file using shell script | cdfd123 | Shell Programming and Scripting | 3 | 10-07-2007 11:17 PM |
| Clearing file contents | raghukayyar | SUN Solaris | 2 | 05-22-2006 08:12 AM |
| Creating file contents using contents of another file | ReV | Shell Programming and Scripting | 21 | 02-24-2006 10:25 AM |
| Reading specific contents from a file and appending it to another file | dnicky | Shell Programming and Scripting | 5 | 10-04-2005 06:45 AM |
| ls contents of a file | douknownam | Shell Programming and Scripting | 7 | 06-14-2004 10:29 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Clearing file contents
Hi,
We need to clear the contents of a file. For this we tried using the commands like - '>filename' and 'cat filename > /dev/null'. If the file size is large, the above commands will clear the file contents but the size of the file remains the same (checked using the command 'ls -l filename'). Are there any other UNIX commands which will empty the file contents? Regards, Raghavendra |
| Bookmarks |
| Tags |
| linux, unix commands |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|