Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 alpha 4/3/85; site ukma.UUCP Path: utzoo!watmath!clyde!cbosgd!ukma!david From: david@ukma.UUCP (David Herron, NPR Lover) Newsgroups: net.news Subject: Re: subscribers script Message-ID: <2199@ukma.UUCP> Date: Sun, 15-Sep-85 23:53:18 EDT Article-I.D.: ukma.2199 Posted: Sun Sep 15 23:53:18 1985 Date-Received: Tue, 17-Sep-85 04:47:59 EDT References: <2161@ukma.UUCP> <2166@ukma.UUCP> <619@decuac.UUCP> <11824@Glacier.ARPA> Reply-To: david@ukma.UUCP (David Herron, NPR Lover) Organization: Univ. of KY Mathematical Sciences Lines: 23 In article <11824@Glacier.ARPA> reid@Glacier.UUCP (Brian Reid) writes: >Oh come on, people! Here is how to find the .newsrc files without searching >the entire file system: > >awk -F: '{printf "if test -f %s/.newsrc; then echo %s/.newsrc; fi\n",$6,$6}' $filefile Err, uuhh, sorry. I did it the way I did on purpose. The original subscribers program I had did it pretty much the way you did it. However, at our site we have some shared accounts. The people sharing the accounts have their own "home directory" and are telling rn that DOTDIR is elsewhere than HOME. So if I just went around looking for $HOME/.newsrc as above I'd miss some. BTW. If you didn't notice in the script, I set $BASEDIR (whatever..) to /usr/user which is actually the base of our user's directory tree. So I'm *NOT* searching the entire filesystem. Not even most of it. (We have sources for too many versions of Unix on line for that!) -- --- David Herron --- ARPA-> ukma!david@ANL-MCS.ARPA --- UUCP-> {ucbvax,unmvax,boulder,oddjob}!anlams!ukma!david --- {ihnp4,decvax,ucbvax}!cbosgd!ukma!david Hackin's in me blood. My mother was known as Miss Hacker before she married! Brought to you by Super Global Mega Corp .com