dotfiles

configurations and scripts
git clone https://riazj.com/git/dotfiles
Log | Files | Refs | LICENSE

def (230B)


      1 #!/bin/sh -e
      2 
      3 [ $# -eq 0 ] && { echo "usage: def phrase"; exit; }
      4 letter="$(printf "%.1s" "$*" | tr '[:lower:]' '[:upper:]')"
      5 sed -n "/<p><ent>$*<\/ent><br\//I,/^$/p" "$HOME/data/books/dictionary/$letter" | w3m -dump -T text/html