Shell Script To Look Up Words At Dictionary.com From The Command Line
Join the DZone community and get the full member experience.Join For Free
The following will look up a word on dictionary.com from the command line, where $1 is the word you want to look up, entered in as a parameter on the command line. (Lynx is a text-based browser that handles the html-to-text conversion for us.)
#!/bin/sh lynx -dump -nolist -pseudo_inlines \ 'http://dictionary.reference.com/search?q='$1'&r=67' \ | tail -n +13 | less -r
Shell script shell Command (computing)
Opinions expressed by DZone contributors are their own.