# HG changeset patch # User Oleksandr Gavenko <gavenkoa@gmail.com> # Date 1326398067 -7200 # Node ID 0c07897b54e49f7f4c0235c34c52646e4a64b508 # Parent 9c82b18ecc15e8806c570473e73c28a6d4d99ba0 As goldendict can be used for search word I don't longer need search script. diff -r 9c82b18ecc15 -r 0c07897b54e4 find-new-words.sh --- a/find-new-words.sh Thu Jan 12 21:52:19 2012 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,47 +0,0 @@ -#!/bin/sh - -if [ -z $1 ]; then - echo "Where dictionary?" - echo "Try $0 --help" - exit 1 -fi - -if [ "$1" = --help ]; then - echo Simple utility for searching word those not are in dictionary. - echo Search done by grep. - echo - echo find-new-words DICTIONARY - echo words read from stdin - echo - echo find-new-words DICTIONARY WORDS_FILE - echo words read from file - exit 0 -fi - -dictionary=$1 - -if [ -z "$2" ]; then - while true; do - if read word; then - if grep $word $dictionary >/dev/null; then - :; - else - echo $word; - fi - else - exit 0 - fi - done -else - while true; do - if read word; then - if grep $word $dictionary >/dev/null; then - :; - else - echo $word; - fi - else - exit 0 - fi - done <$2 -fi