From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Mohamed K. Ahmed" Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: viewing files Date: Mon, 01 Dec 2003 09:58:09 -0500 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <281f7541.7541281f@vsc.teksystems.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1070290749 4673 80.91.224.253 (1 Dec 2003 14:59:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 1 Dec 2003 14:59:09 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Mon Dec 01 15:59:07 2003 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 1AQpVy-0006JK-00 for ; Mon, 01 Dec 2003 15:59:06 +0100 Original-Received: (qmail 32283 invoked by uid 5); 1 Dec 2003 14:58:57 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 32268 invoked by uid 49493); 1 Dec 2003 14:58:57 -0000 Original-Received: from mkahmed@vsc.teksystems.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(-3.0/5.0):. Processed in 18.003791 secs); 01 Dec 2003 14:58:57 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (160.91.86.17) by 0 with SMTP; 1 Dec 2003 14:58:39 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.2-X17 #30669) with ESMTP id <0HP80033J1LQ5A@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 01 Dec 2003 09:58:39 -0500 (EST) Original-Received: from mail.vsc.teksystems.com (mail.vsc.teksystems.com [63.73.230.193]) by emroute2.cind.ornl.gov (PMDF V6.2-X17 #30669) with ESMTP id <0HP8003291LK59@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 01 Dec 2003 09:58:33 -0500 (EST) Original-Received: from vsc.teksystems.com ([127.0.0.1]) by mail.vsc.teksystems.com (Netscape Messaging Server 4.1) with ESMTP id HP81KX00.V0H for ; Mon, 01 Dec 2003 09:58:09 -0500 Original-To: tru64-unix-managers@ornl.gov X-Mailer: Netscape Webmail Content-language: en Content-Disposition: inline X-Accept-Language: en Xref: main.gmane.org gmane.os.tru64.managers:5940 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:5940 Thanks for Phil Baldwin, Steve Cooper, Olle Eriksson, Derek Gatherer, Jose Reyes and Lucio Chiappetti I used trhe following script, put it in a file and executed the file. It gave me exactly what I wanted Mohamed from Phill: could always do (in the directory with the logfiles) for i in backup*.log do echo "$i" >> newfile tail $i >> newfile done Mohamed Ahmed ----- Original Message ----- From: "Mohamed K. Ahmed" Date: Monday, December 1, 2003 9:31 am Subject: viewing files > Dear Managers, > > I have about 50 files that have the same name except for some > numbers > as: backup_031201.log (the numbers change according to the date). > I want to just look at the last 10 lines of each file. I don't > want to > issue the same command 50 times, I just want to give it one > command and > get what I want. > I know that tail views the last 10 lines of a file, but when I > issue > the command # tail backup_03*.log or # tail backup_03????.log, > it > just gives me that last/new file available > > Any help??? > The system is ES40, 4 CPU, 4 GB mem, running Tru64 UNIX V 5.1B > > Mohamed > >