/[hyperestraier]/upstream/0.5.1/lab/searchlist
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /upstream/0.5.1/lab/searchlist

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations)
Fri Jul 29 21:56:53 2005 UTC (18 years, 9 months ago) by dpavlin
File size: 1474 byte(s)
import of HyperEstraier 0.5.1

1 #! /bin/sh
2
3 #================================================================
4 # searchlist
5 # Search documents with a list
6 #================================================================
7
8
9 # set variables
10 LANG=C ; export LANG
11 LC_ALL=C ; export LC_ALL
12 PATH="$PATH:." ; export PATH
13 casket="casket"
14
15
16 # set the casket
17 if [ "$#" -ge 1 ]
18 then
19 casket="$1"
20 fi
21
22
23 # function to generate words
24 wordlist(){
25 cat <<__EOF
26 mikio
27 unix
28 gnu
29 Estraier
30 Hyper Estraier
31 This is the simplest sample document draft.
32 This
33 This is
34 This is the simplest
35 document
36 document draft
37 draft.
38 .
39 My name is Mikio Hirabayashi
40 これは最も単純な文書ドラフトです。
41
42 これ
43 これは
44 これは最も単純
45 文書ドラフト
46 ドラフト
47 です。
48
49
50 桃太郎
51
52 そこに
53 しかも
54 検索
55 検索が高速
56 来る
57 ファイル
58 インストール
59 Hyper AND Estraier
60 これ AND 京都
61 こ AND です
62 本文 OR テキスト AND も
63 しかし AND しかも OR でも ANDNOT だけ
64 あ OR い OR う OR ア OR イ OR ウ OR 行
65 。 ANDNOT 検索
66 を OR に OR が OR へ OR や OR の OR から OR で OR より AND ソフトウェア
67 [UVSET] AND 文書
68 [UVSET] ANDNOT a OR the OR is
69 [UVSET] ANDNOT を OR に OR が OR へ OR や OR の OR から OR で OR より
70 __EOF
71 }
72
73
74 # perform test
75 wordlist |
76 while read word
77 do
78 printf '====[ %s ]====\n' "$word"
79 estcmd search -gs -max 8 -vu "$casket" "$word" | egrep -v '^(TIME|----)'
80 printf '\n\n'
81 done
82
83
84 # exit normally
85 exit 0
86
87
88
89 # END OF FILE

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26