Backboards: 
Posts: 155

I just made a unix/linux alias for a Magic Eightball generator


alias magic8='rnd8=$(( $RANDOM % 20 + 1 )); head -$rnd8 ~/magic8.lis | tail -1'

where magic8.lis is in your home directory

of course, you could have it check the number of lines in the listing to change from 20 if you add customised answers.



Responses:
Post a message   top
Replies are disabled on threads older than 7 days.