![]()
Linux, Unix, /etc/$ To set up this Linux system, do I really have to type long,
cryptic, frequently inconsistent and undocumented commands with
occasional long strings of hex digits?
# Yeah. You got a problem with that?
|
Sponsored links (requires javascript):
#!/bin/ksh
#lookup.eco: look up the name of a chess opening, given its ECO code
. $HOME/lib/stdlib.sh
file=$HOME/library/games/chess/openings/eco.txt
case $1 in
"") cat $file ;;
*) egrep -i "^$1[a ]" $file | head -1 ;;
esac