in message <[EMAIL PROTECTED]>, wrote Jan Grant thusly... > > On Fri, 4 Apr 2003, CARTER Anthony wrote: > > > How do I clean the contents of text files without actually > > removing the files? > > man 1 truncate > > This is a command-line utility that directly wraps the appropriate > system call.
Some other ways are (bourne shell)... cat /dev/null > file > file ...w/ above three methods, you would/should not have problem w/ binary files too, unlike the "echo -n" method. - parv -- _______________________________________________ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"