The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
How to empty a file without removing it.
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Directory
Register
Forum Rules
FAQ
Contribute
Members List
Search
Today's Posts
Mark Forums Read
Thread
:
How to empty a file without removing it.
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
05-30-2007
Shell_Life
Registered User
Join Date: Mar 2007
Location: Bahia, Brazil
Posts: 695
Jxh461,
There is an option in the "set" command that controls the truncation of files.
The following does not allow files to be truncated:
Code:
set -o noclobber
Shell_Life
View Public Profile
Find all posts by Shell_Life