If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > delete file

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-01-04, 04:26
doctorrossi doctorrossi is offline
Registered User
 
Join Date: Feb 2004
Posts: 6
delete file

Hi,
what 's unix command (ksh) for move to zero byte a large file, without remove it , or renaming?
Thank!
Reply With Quote
  #2 (permalink)  
Old 03-01-04, 05:04
praveenpr praveenpr is offline
Registered User
 
Join Date: Jan 2004
Location: Singapore
Posts: 89
Re: delete file

Quote:
Originally posted by doctorrossi
Hi,
what 's unix command (ksh) for move to zero byte a large file, without remove it , or renaming?
Thank!
try cat <one space> > filename
__________________
Thanks and Regards,

Praveen Pulikunnu
Reply With Quote
  #3 (permalink)  
Old 03-01-04, 05:21
aigles aigles is offline
Registered User
 
Join Date: Jan 2004
Location: Bordeaux, France
Posts: 319
Code:
cp /dev/null > filename

# or

> filename
__________________
Jean-Pierre.
Reply With Quote
  #4 (permalink)  
Old 03-01-04, 07:17
doctorrossi doctorrossi is offline
Registered User
 
Join Date: Feb 2004
Posts: 6
Muchas gracias!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On