Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!cbatt!ihnp4!homxb!houxm!mhuxt!mhuxm!mhuxo!ulysses!faline!thumper!tr From: tr@thumper.UUCP Newsgroups: comp.unix.questions Subject: Here is an amusing shell script Message-ID: <667@thumper.UUCP> Date: Mon, 27-Apr-87 08:48:48 EDT Article-I.D.: thumper.667 Posted: Mon Apr 27 08:48:48 1987 Date-Received: Wed, 29-Apr-87 00:41:51 EDT Organization: BellCoRe (Bell Communications Research) Lines: 27 I didn't know where to put this so I am putting it here. I don't subscribe to comp.unix.wizards because the traffic is too great. I hope you like my script. You need to have csh on your system to use it. I think most Unix systems do these days. The script will print all .plan files of users logged in that are readable to you. I have seen some surprising ones that I would not have seen. I like this better than finger because the contents are cleaner and thus less likely to distract the user's eyes. --- cut here --- #! /bin/csh foreach i (`users`) set file = ~${i}/.plan if (-r $file) then echo '' echo ${i}: cat $file endif end --- cut here --- -- Tom Reingold INTERNET: tr@bellcore.com UUCP: ..!decvax!ucbvax!ulysses!bellcore!tr ihnp4!mhuxt/