Enjoy a randomly generated fortune:
$ fortune | cowsay _________________________________________ / : I've tried (in vi) \ | "g/[a-z]\n[a-z]/s//_/"...but that | | doesn't : cut it. Any ideas? (I take it | | that it may be a two-pass sort of | | solution). In the first pass, install | | perl. :-) | | | | -- Larry Wall | \ <6849@jpl-devvax.JPL.NASA.GOV> / ----------------------------------------- \ ^__^ \ (oo)\_______ (__)\ )\/\ ||----w | || ||
$output = shell_exec("/usr/games/fortune | /usr/games/cowsay"); echo $output;