Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rochester!ur-valhalla!badri From: badri@ur-valhalla.UUCP (Badri Lokanathan) Newsgroups: net.sources.d Subject: checkmail: Unneccessarily complicated? Message-ID: Date: Fri, 15-Aug-86 12:46:31 EDT Article-I.D.: ur-valha.769 Posted: Fri Aug 15 12:46:31 1986 Date-Received: Tue, 19-Aug-86 21:01:25 EDT Organization: EE VLSI Graduate Research Facility, UR, Rochester NY Lines: 16 Keywords: checkmail,egrep,sed There have been several postings to net.sources about utilities to check one's /usr/spool/mail/* file for current mail without having to get into mail. What I dont understand is why not simply use egrep or sed to examine the file? They are fast enough .. e.g. egrep '^From:|^Subject:' /usr/spool/mail/user seems to work fine. tim@hoptoad.uucp (Tim Maroney) suggests storing a file which would be used as a timestamp to check for an update on the spool file. A sed or egrep line could be tacked on. -- "It's better to burn out ^ ^ ARPA: ur-valhalla!badri@rochester.arpa Than it is to rust; . . UUCP: {bullwinkle,cmcl2,columbia,cornell, But I'll corrode ( ==@== ) harvard,ll-xn,nike,seismo,topaz} Till I turn to dust." ^^^ !rochester!ur-valhalla!badri