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