Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!decwrl!shelby!neon!dalgic From: dalgic@Neon.Stanford.EDU (Ismail Dalgic) Newsgroups: alt.sources Subject: Re: 'from' alias in csh Message-ID: <1990Jan7.000740.21661@Neon.Stanford.EDU> Date: 7 Jan 90 00:07:40 GMT References: <1990Jan6.183428.11336@csusac.csus.edu> Organization: Computer Science Department, Stanford University Lines: 14 Since people started sending millions of different versions of "from", let me send my own version that I have been using for some time. This one uses "mail" to do most of the job. It prints the sender, the number of lines/characters in the message, and the subject, all in one line. You can simply add $4,$5,$6 and $7 in the print list of awk to print the date as well. Here it is: alias from 'echo "q" | mail | awk \' {if (NF == 9) print $3,$8,$9}\'' BTW, is alt.sources really the appropriate place to send such one-liners? Have Fun, --Ismail