[Summary] Shell variable for /var/adm/syslog.dated/this_one?

From: Jim Smart <jim_at_tsw.com.au>
Date: Wed, 17 Mar 1999 15:29:18 +1000

Thanks to all who replied,

The best and simplest (imho) was

ls -rtd /var/adm/syslog.dated/* | tail -1

thanks to Degerness, Mandell ITSD:EX
[Mandell.Degerness_at_gems2.gov.bc.ca]

Regards,

Jim Smart

Original Question:

Hi,

What is the quickest way for a shell script to find the current directory
that syslog messages are being written to ?

eg:

"/var/adm/syslog.dated/16-Mar-21:51"
or
/var/adm/syslog.dated/16-Mar-21\:51
Received on Wed Mar 17 1999 - 05:32:54 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:39 NZDT