diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2020-11-02 18:24:53 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2020-11-02 18:24:53 -0300 |
commit | aac6cc1fe41986300e46b3bc5015b47cee3378ff (patch) | |
tree | 375947838e69c02e0b7759c4a6e632ab1196e48d | |
parent | 3d03267138102bf1f5ab60c66e0fcca18db3b6cd (diff) | |
download | scripts-aac6cc1fe41986300e46b3bc5015b47cee3378ff.tar.gz scripts-aac6cc1fe41986300e46b3bc5015b47cee3378ff.tar.bz2 |
Show: use a filelist
-rwxr-xr-x | show | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -6,6 +6,7 @@ # Parameters BASENAME="`basename $0`" DOCS="$HOME/data/doc" +LIST="$DOCS/.filelist" ITEM="$1" # Check @@ -15,4 +16,5 @@ if [ -z "$ITEM" ]; then fi # Dispatch -find $DOCS -iname "*$ITEM*" | head -1 | while read item; do xdg-open "$item"; done +#find $DOCS -iname "*$ITEM*" | head -1 | while read item; do xdg-open "$item"; done +grep "$ITEM" $LIST | while read item; do xdg-open "$item"; done |