'from' alias in csh

Ismail Dalgic dalgic at Neon.Stanford.EDU
Sun Jan 7 11:07:40 AEST 1990


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



More information about the Alt.sources mailing list