File: pluku

package info (click to toggle)
eo-spell 3.7-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 952 kB
  • sloc: lisp: 2,789; sh: 179; makefile: 142; sed: 73; perl: 25; ansic: 16
file content (25 lines) | stat: -rwxr-xr-x 576 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh
#@(#)Pluku la nekonatajn vortojn el \$1 kaj sendu ilin en \$2
#
echo "Pluku la nekonatajn vortojn el \$1 kaj sendu ilin en \$2."
echo "Elektu la cxapelprezenton:"
echo "1: iksismo (cxirkaux)"
echo '2: TeX (^cirka^u)'
echo "3: Latina-3a"
echo "Alio: Cxesu (eliru)"
echo -n "Do? "
read choice

case $choice in
    1) p="cxirkaux";;
    2) p="tex";;
    3) p="latin3";;
    *) exit;;
esac

#ispell -l -d eo -T cxirkaux < $1 | sort -uf
if [ "x$2" = "x" ]; then
    ispell -l -d esperanto -T $p < $1 | sort -uf
else
    ispell -l -d esperanto -T $p < $1 | sort -uf >$2
fi