Introduction
Introduction Statistics Contact Development Disclaimer Help
complete_word - sob - simple output bar
git clone git://git.codemadness.org/sob
Log
Files
Refs
README
LICENSE
---
complete_word (376B)
---
1 #!/bin/sh
2
3 file="$OUTFILE"
4 test -f "$file" || exit 1
5
6 grepword() {
7 grep -E "^$1" < "$file"
8 }
9
10 word="$SOBWRITE"
11
12 #if test x"$DISPLAY" = x""; then
13 # line=$(grepword "$word" | sort | uniq | slmenu -l 20)
14 #else
15 # line=$(grepword "$word" | sort | uniq | dmenu -l 20)
16 #fi
17
18 line=$(grepword "$word" | sort | uniq | dmenu -l 20)
19
20 if test x"$line" != x""; then
21 printf '%s' "$line"
22 fi
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.