Craig--

On Monday 09 July 2001 01:20 am, Craig Westerman wrote:
> Is there a linux command that will remove the contents of a file, but leave
> the file name?

Echo an empty string into it:

$ echo '' > filename.txt

That '' is a pair of single-quotes, incidentally. It's sort of hard to see 
that in some fonts...


-- 
Dan Ray
Director Custom Applications
Triangle Research, Inc.
http://www.triangleresearch.com

Reply via email to