xdp1
Display a verse from the dhammapada
Part of display-dhammapada(1).
Usage
display-dhammapada [{-r | -m | -b}]
[{<num> | all}]
dp [{-r | -m | -b}]
[{<num> | all}]
xdp [<num>]
Options
-
-r -
Use the Richards translation (default).
-
-m -
Use the Muller translation.
-
-b -
Display corresponding verses from both translations.
|
Print the given number verse. |
|---|---|
|
Print all the verses. |
With no arguments a random verse is printed.
Overview
The Dhammapada is an anthology of 423 verses from the Kuddaka Nikaya part of the Theravada Pali Canon. It contains Buddhist ethical and spiritual precepts. One of the translations is by John Richards; the other is an older translation by F. Max Muller.
display-dhammapada prints to the standard output.
xdp prints using xmessage on an X Window screen, or in bold using tputs on a text terminal.
Examples
To display a verse each time you log in on a terminal, put display-dhammapada or xdp in your ~/.profile, ~/.bash_profile or ~/.login, as appropriate for your shell.
To display a verse each time you log in on X Window, put xdp in your ~/.xsession.
KDE 2.1 has "amor" toy that can display various tips. To use the dhammapada for that enter these commands at shell prompt: mkdir ~/.kde/share/apps/amor display-dhammapada -r all |perl -0777 -pe 's/\n\s*\n\s*\n/\n%\n/g' >~/.kde/share/apps/amor/tips Then start amor K->Toys->Amor, right click on amor animation, select "Options" and select "Allow application tips" and "Show random tips".
Files
/usr/share/display-dhammapada/dhammapada-english-transl.txt
/usr/share/display-dhammapada/dhammapada-alternate.txt
Releases
3 releases since Debian 2.2 (Potato); the text changed 2 times.
-b since Debian 3.0 (Woody);
-m since Debian 3.0 (Woody);
-r since Debian 3.0 (Woody).