Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!cwjcc!hal!ncoast!brad@looking.UUCP From: brad@looking.UUCP (Brad Templeton) Newsgroups: comp.sources.d Subject: minimalist version of "screens" Message-ID: <8811102351.AA05342@looking.UUCP> Date: 26 Nov 88 23:14:55 GMT Sender: allbery@ncoast.UUCP Reply-To: brad@looking.UUCP (Brad Templeton) Lines: 26 [Agreed. But since when has that stopped anyone? ++bsa] I thought it was a bit overblown. What it describes can be easily done with a trivial shell script, and this short program that I wrote, which I use to have the cron pick a random joke from my joke queues. pick.c: main(argc,argv) int argc; char **argv; { long time(); srand( (unsigned int)time( (long *)0 ) ); if( argc > 1 && strcmp(argv[1],"*") ) printf( "%s\n", argv[ 1 + (rand() % (argc-1)) ] ); } You say something like p `pick ~/.screens/*` to get the same effect. Hardly even worth posting...