From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,172d33ced5e29155 X-Google-Attributes: gidfee84,public From: Nikola Milutinovic Subject: Re: Clearing /var/adm/messages, how? Date: 1998/09/17 Message-ID: <36016A1D.B31E15ED@EUnet.yu>#1/1 X-Deja-AN: 392166369 Content-Transfer-Encoding: 7bit References: <6tqf3o$ava$1@power42t.hkbu.edu.hk> Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@EUnet.yu X-Trace: SOLAIR2.EUnet.yu 906062333 3703 194.247.199.42 (17 Sep 1998 19:58:53 GMT) Organization: Me organized? Not here! Mime-Version: 1.0 NNTP-Posting-Date: 17 Sep 1998 19:58:53 GMT Newsgroups: comp.unix.osf.osf1 Pui Ming WONG wrote: > > I've found that there's a file called 'messages' under the /var/adm > subdirectory of our DGunix system. > It's very large. How do i clean it so that old messages will be > cleared and new ones will be stored anew. # sed '1,10000D' messages > msg.new # mv msg.new messages Repeat Until happy==True Nix.