riazj.com

source code for this website
git clone https://riazj.com/git/riazj.com
Log | Files | Refs | LICENSE

commit 094462bcedb0b20720e2670307587ffd3f0f5847
parent b5bae2b55af3a6c85d62b166878df273c353c4f8
Author: Riaz <riaz@riazj.com>
Date:   Sat, 19 Jul 2025 07:25:34 -0700

Add link to dictionary script so that it's up to date

Diffstat:
Marticles/cli-dictionary.html | 6+-----
1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/articles/cli-dictionary.html b/articles/cli-dictionary.html @@ -17,11 +17,7 @@ <p>A better alternative is to download the <a href="https://gcide.gnu.org.ua/download">GNU Collaborative International Dictionary of English</a>.</p> <p>Once inside the unpacked directory, run the following to change the naming of the files from "CIDE.*" to single letters.</p> <pre>for f in CIDE*; do; mv $f "${f#*.}"; done</pre> -<p>Now, the following shell script can be used:</p> -<pre>#!/bin/sh - -letter="$(printf "%.1s" "$*" | tr '[:lower:]' '[:upper:]')" -sed -n "/&lt;p&gt;&lt;ent&gt;$*&lt;\/ent&gt;&lt;br\//I,/^$/p" "/path/to/dictionary/$letter" | w3m -dump -T text/html</pre> +<p>Now, <a href="/git/dotfiles/file/.local/bin/def">this shell script</a> can be used.</p> <p>The w3m command can be replaced by other command-line web browsers to view the HTML. It takes less than a tenth of a second to return a definition.</p> </article> <footer>