Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!shelby!portia!forel!karish From: karish@forel.stanford.edu (Chuck Karish) Newsgroups: alt.sources.wanted Subject: Re: Printing of a random quote. Summary: fortune Message-ID: <7723@portia.Stanford.EDU> Date: 16 Dec 89 08:48:42 GMT References: <1989Dec16.064319.21721@agate.berkeley.edu> Sender: USENET News System Reply-To: karish@forel.stanford.edu (Chuck Karish) Organization: Mindcraft, Inc. Lines: 18 In article <1989Dec16.064319.21721@agate.berkeley.edu> c60c-4ay@e260-1b (Raja S Kushalnagar) wrote: |I have a large file having lots of quotes, in the format: |%% |...... quote ............ |%% |...... quote ............ |%% | |and so on. I could write a C program to print a quote at random. But I was |wondering if it could be done with Unix commands or awk alone. Could it? The `fortune' program was written for exactly this purpose. Available from uunet by anonymous FTP (comp.sources.games/volume1/fortune/*) Chuck Karish karish@mindcraft.com (415) 323-9000 karish@forel.stanford.edu