search_title - randomcrap - random crap programs of varying quality
HTML git clone git://git.codemadness.org/randomcrap
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
search_title (212B)
---
1 #!/bin/sh
2 cd ~/.sfeed/feeds
3
4 SEARCH="$1" LC_ALL=C awk '
5 BEGIN {
6 FS = OFS = "\t";
7 search = tolower(ENVIRON["SEARCH"]);
8 }
9 index(tolower($2), search) {
10 $2 = "[" FILENAME "] " $2;
11 print $0;
12 }' * | \
13 sort -k1,1rn