Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!uwm.edu!ux1.cso.uiuc.edu!ux1.cso.uiuc.edu!gupta From: gupta@ux1.cso.uiuc.edu Newsgroups: comp.mail.elm Subject: Re: mailbox summary script Message-ID: <8700003@ux1.cso.uiuc.edu> Date: 14 Apr 90 09:38:46 GMT References: <90@ Lines: 20 Nf-ID: #R: # count the total number of messages: > set total = `grep "^From " $MAIL | wc | cut -c5-7` > # count the number seen by elm: > set seen = `grep "^Status: " $MAIL | wc | cut -c5-7` > # count the number read: > set read = `grep "^Status: R" $MAIL | wc | cut -c5-7` > # count the number unseen by the user > set unseen = `grep "^Status: O" $MAIL | wc | cut -c5-7` I don't think BSD machines have cut. I simply got rid of the last pipe, tacked the -l option onto the end of the wc command, and it worked on BSD. Thanks for the script! Rohit ------------------------------------------------------------------------------- Internet: rohit@uiuc.edu UUCP: uunet!uiucuxc!ux1!gupta BITnet: GUPTA@UIUCVMD "Master's of Business - that's the lowest!" - Diner