Asdcarl.112 net.news utzoo!decvax!ucbvax!ucsfcgl!sdcarl!rusty Mon Dec 7 21:50:13 1981 Re: Bnews conversion The shell script I just sent needs a * after the group id re: UID=`grep "^$LOGNAME:" /etc/passwd | sed -e 's/\(.*\):\(.*\):\([0-9][0-9]*\):\([0-9][0-9]*\):\(.*\):\(.*\):\(.*\)/\3/'` SUBS=`grep "^$UID" /usr/spool/news/.uindex | sed -e 's/.*://' | tr "," "\040"` echo "options -n $SUBS" > $HOME/.newsrc echo '$HOME/.newsrc' created This shell script claims that it will make a .newsrc for everyone in /etc/passwd: for user in `sed -e 's/\(.*\):\(.*\):\([0-9][0-9]*\):\([0-9][0-9]*\):\(.*\):\(.*\):\(.*\)/\1/' $home/.newsrc echo "$home/.newsrc" created done Again, I apologise for the re's being so bushy. ----------------------------------------------------------------- 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.