Training scripts

Dave Lovelace dave at firstcomp.biz
Wed Jan 28 15:45:06 CET 2004


W M Brelsford wrote:
> > A good way to empty a file is:  "cat /dev/null > file".  The file
> > retains its attributes (owner and group and permissions) and the length
> > becomes zero.
> 
> Or simply "> file".
> 
Only in Bourne shell & its enhanced clones, I think.  IIRC, a friend
who uses (or used) csh or tcsh found that this just errored.  (Yes - I
just tried it under csh (on the ancient SYSV system I'm on) and under
tcsh (on a Linux box), and on each I got "Invalid null command".)

-- 
- Dave Lovelace
  dave at firstcomp.biz
  davel at cyberspace.org




More information about the Bogofilter mailing list