The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 01-06-2004
fpmurphy fpmurphy is offline
Moderator
 

Join Date: Dec 2003
Location: /ksh93
Posts: 883
A common way of zero-ing a file which is portable
across most Unices and shells is

cat /dev/null > file

- Finnbarr