简体   繁体   中英

Linux fortune program source code

I am using fortune command in my shell script. I want to embed these quotations in web based program. Where I can find source code and quotation database of fortune command in Linux distribution?

It appears that the source code and database for the Debian version are maintained here: http://anonscm.debian.org/gitweb/?p=collab-maint/fortune-mod.git

(I found this via the Debian package tracking system for the fortunes package: https://packages.qa.debian.org/f/fortune-mod.html )

For just the quotation database on a Debian based distro go to /usr/share/games/fortunes . Quotes are there just in plain text. You can add there some other databases, search with:

apt search ^fortunes

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM