RickSisler ([EMAIL PROTECTED]) wrote:
> RickSisler ([EMAIL PROTECTED]) wrote:
> > Kevin B. O'Brien ([EMAIL PROTECTED]) wrote:
> > [...] 
> > > OK, I got it working. The problem was that I left out some quote 
> > > marks in what I was echoing.
> > > 
> > > Now I am getting everything as one line. How do I insert a "return" 
> > > to get a new line?
> Kevin and anyone else who doesn't know,
> 
> you can create your own quotes file that fortune will parse.
> In a plain text editor, write your quotes, separating each one with
> a percent sign on its own line. For example:
> 
> %
> Now is the time for all good men to come to the aid of their country.
> %
> You can lead a horse to water but you can't make it drink.
> %
> He who laughs last laughs loudest 
> %
woops, forgot the most important part:
in a terminal type the command:

strfile myquotes

(you may have to be root for this, but it worked for my regular
user just now)

It will create "myquotes.dat"
Then..
> Assuming you save this file as "myquotes," 
> just point fortune to it:
> 
> $> fortune /path/to/myquotes    
> He who laughs last laughs loudest

(this was passed around on the newbie list in the last couple years)
-- 
RickS
The value of a man resides in what he gives and not in what he
is capable of receiving.  --Albert Einstein
____________________________________________________
Want to buy your Pack or Services from Mandriva? 
Go to http://store.mandriva.com
Join the Club : http://www.mandrivaclub.com
____________________________________________________

Reply via email to