new-words
view en.sh @ 28:7db7bbf96fad
temporary files names
author | Igor Chubin <igor@chub.in> |
---|---|
date | Tue Jun 15 05:46:50 2010 +0300 (2010-06-15) |
parents | 9345cc05fdd1 |
children | c631833fa2be |
line source
1 #!/bin/sh
3 DICTD_SERVER="dictd.xdsl.by"
4 DICTD_SERVER_ARGS="-h $DICTD_SERVER"
5 DICT_NAME=mueller24
8 myname="`echo $0 | sed s@.*/@@`"
9 case $myname in
10 "de") DICT_NAME=deu-eng ; DICTD_SERVER_ARGS='' ;;
11 "pl") DICT_NAME=slovnyk_pl-ru ;;
12 "ru") DICT_NAME=ozhshv ;;
13 esac
15 (
16 dict $DICTD_SERVER_ARGS -d "$DICT_NAME" "$@"
17 if [ -e "$ORIGINAL_TEXT" ]
18 then
19 echo . . . . . . . . . . . . . . . . . . . . . . . . . ; echo
20 grep-sentences "$*" "$ORIGINAL_TEXT"
21 fi
22 ) | less -p "$*"