Results 1 to 4 of 4

Thread: delete file

  1. #1
    Join Date
    Feb 2004
    Posts
    6

    Unanswered: delete file

    Hi,
    what 's unix command (ksh) for move to zero byte a large file, without remove it , or renaming?
    Thank!

  2. #2
    Join Date
    Jan 2004
    Location
    Singapore
    Posts
    89

    Re: delete file

    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

  3. #3
    Join Date
    Jan 2004
    Location
    Bordeaux, France
    Posts
    320
    Code:
    cp /dev/null > filename
    
    # or
    
    > filename
    Jean-Pierre.

  4. #4
    Join Date
    Feb 2004
    Posts
    6
    Muchas gracias!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •