home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume12 / cnews / part01 / lib.proto / newsreply.path < prev    next >
Encoding:
Text File  |  1987-10-19  |  220 b   |  12 lines

  1. #! /bin/sh
  2. # newsreply - print return address from news article on stdin
  3. # This version is for those without domain mailers
  4. F=/tmp/nc$$
  5.  
  6. cat >$F
  7.  
  8. SENDER="`grep '^Path:' $F | sed 's/^[^:]*://' `"
  9.  
  10. echo "$SENDER"
  11. rm -f $F
  12.