home *** CD-ROM | disk | FTP | other *** search
/ Unix System Administration Handbook 1997 October / usah_oct97.iso / news / cnews.tar / relay / anews / a.to.b < prev    next >
Text File  |  1988-04-11  |  235b  |  18 lines

  1. #! /bin/sh
  2. # a.to.b: A-format news to B-format converter (thanks, Norman)
  3. PATH=/bin:/usr/bin:/usr/ucb; export PATH
  4.  
  5. sed '
  6. 1s/^A/Message-ID: /
  7. 2s/^/Newsgroups: /
  8. 3{
  9. s/^/Path: /p
  10. s/Path/From/
  11. }
  12. 4s/^/Date: /
  13. 5{
  14. s/^/Subject: /p
  15. s/.*//
  16. }
  17. '
  18.