3 #requires arch-wiki-docs package
5 wiki_title
='Archers Guide to Galaxy - DO NOT PANIC!';
6 html_docs
='/usr/share/doc/arch-wiki/html/';
9 search
=$
(zenity
--entry --title="$wiki_title" --text='Enter regular expression to search');
12 fgrep
-Ri "$search" "$html_docs" | cut
-d ':' -f 1 |
sort -u |
while read file; do
13 title
=$
(fgrep
-m 1 -i '<title>' "$file" |
head -n 1 | cut
-d '>' -f 2- | cut
-d '<' -f 1);
14 echo -ne "FALSE\x00$title\x00$file\x00";
15 done |
xargs -0 zenity
--width=800 --height=300 --list --title="$wiki_title" --text='Select page to view' --radiolist --column 'X' --column 'Page' --column 'File' --print-column=3;
This page took 1.358877 seconds and 4 git commands to generate.