From: "Mohamed K. Ahmed" <mkahmed@vsc.teksystems.com>
Subject: SUMMARY: viewing files
Date: Mon, 01 Dec 2003 09:58:09 -0500 [thread overview]
Message-ID: <281f7541.7541281f@vsc.teksystems.com> (raw)
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" <mkahmed@vsc.teksystems.com>
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
>
>
next reply other threads:[~2003-12-01 14:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-01 14:58 Mohamed K. Ahmed [this message]
2003-12-02 17:47 ` Patch kit 6 Rich Glazier
2003-12-08 18:31 ` SUMMARY: " Rich Glazier
2003-12-11 17:09 ` SUMMARY update: " Rich Glazier
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox