Aucbonyx.217 net.news utzoo!decvax!ucbvax!ARPAVAX:Onyx:jmrubin Wed Dec 23 16:15:10 1981 a simple readnews shell script I was having trouble using readnews because someone fixed it without fixing it correctly a few days ago, and I decided to write my own simple readnews. The escapes are valid for csh, but should be readily translatable into sh. The assumption is that you have a file called .newsprof in your home directory which was last modified when you last read the news. Someone should write newsgroup handlers for it (using environmental variables) and maybe options. Alternatively, one could use sed and make it more like readnews or the mh program. However, I bet the whole thing could be done from existing programs using a shell script. (# is just the comment line character in csh--if the first line of a script is not a comment line, csh assumes it is a sh script) # find /usr/spool/news -name '[1-9]*' -newer $HOME/.newsprof '\!'\ -type d -exec head -6 {} ';' -ok more {} ';' touch $HOME/.newsprof Joel Rubin ----------------------------------------------------------------- gopher://quux.org/ conversion by John Goerzen of http://communication.ucsd.edu/A-News/ This Usenet Oldnews Archive article may be copied and distributed freely, provided: 1. There is no money collected for the text(s) of the articles. 2. The following notice remains appended to each copy: The Usenet Oldnews Archive: Compilation Copyright (C) 1981, 1996 Bruce Jones, Henry Spencer, David Wiseman.