From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Rich Glazier Newsgroups: gmane.os.tru64.managers Subject: cropping a file Date: Wed, 11 Feb 2004 10:46:24 -0800 (PST) Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <20040211184624.43655.qmail@web20727.mail.yahoo.com> References: <000001c3f0c8$13e731f0$c7fe5ecb@vikrams> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1076525212 31686 80.91.224.253 (11 Feb 2004 18:46:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 11 Feb 2004 18:46:52 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Wed Feb 11 19:46:43 2004 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 1AqzNi-0000qM-00 for ; Wed, 11 Feb 2004 19:46:42 +0100 Original-Received: (qmail 4098 invoked by uid 5); 11 Feb 2004 18:46:34 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 4083 invoked by uid 49493); 11 Feb 2004 18:46:34 -0000 Original-Received: from rglazier2002@yahoo.com by sws1 by uid 49491 with qmail-scanner-1.16 (iscan: v3.1/v5.600-1011/622/49252. clamscan: 20030605. spamassassin: 2.55. Clear:SA:0(-0.7/5.0):. Processed in 0.946523 secs); 11 Feb 2004 18:46:34 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 11 Feb 2004 18:46:33 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.2-X17 #30669) with ESMTP id <0HSX00JHVO5I1Z@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 11 Feb 2004 13:46:32 -0500 (EST) Original-Received: from web20727.mail.yahoo.com (web20727.mail.yahoo.com [216.136.226.117]) by emroute1.cind.ornl.gov (PMDF V6.2-X17 #30669) with SMTP id <0HSX00IJRO5DD6@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 11 Feb 2004 13:46:26 -0500 (EST) Original-Received: from [65.201.47.246] by web20727.mail.yahoo.com via HTTP; Wed, 11 Feb 2004 10:46:24 -0800 (PST) In-reply-to: <000001c3f0c8$13e731f0$c7fe5ecb@vikrams> Original-To: tru64-unix-managers@ornl.gov Xref: main.gmane.org gmane.os.tru64.managers:6417 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:6417 Does anyone have a suggestion about how to crop a file such that it always remain a certain size (in one step- i.e. not creating and deling files and not an editor)? I have a log file where I want to dump the fist 100 lines once a week. I've tried ways of using head and redirecting dev/null to the file, but can't quite get what I want. Thanks. T645.1A PK6 __________________________________ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html