The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 07-04-2007
aigles's Avatar
aigles aigles is offline
Registered User
 

Join Date: Apr 2004
Location: Bordeaux, France
Posts: 1,212
Quote:
Originally Posted by laknar View Post
i need to empty a file which is already existing.
The command works also for an existing file :
Code:
$ ls -l my_file
-rw-r--r-- 1 Jean-Pierre Aucun 8943 Jul  4 18:55 my_file
$ > my_file
$ ls -l my_file
-rw-r--r-- 1 Jean-Pierre Aucun 0 Jul  4 18:56 my_file
$
Reply With Quote