[Lunar-commits] <lunar> Use --include=DETAILS for search

Peter de Ridder peter at lunar-linux.org
Sat Nov 16 10:29:08 CET 2013


commit 67bd369e67bfd1dfa30d5dd1612bbba893fd58c6
Author: Peter de Ridder <peter at lunar-linux.org>
Date: Tue, 29 Oct 2013 13:32:27 -0700
URL: https://github.com/lunar-linux/lunar/commit/67bd369e67bfd1dfa30d5dd1612bbba893fd58c6

Use --include=DETAILS for search
---
  prog/lvu | +1/-1     
  1 file changed, 1 insertion(+), 1 deletion(-)

--- a/prog/lvu
+++ b/prog/lvu
@@ -1448,7 +1448,7 @@ main()  {
       ;;
 
     search)
-      grep -irle "$2" "$MOONBASE" | grep DETAILS | sed "s;${MOONBASE}/\(.*\)/DETAILS;\1;"
+      grep -irle "$2" "$MOONBASE" --include=DETAILS | sed "s;${MOONBASE}/\(.*\)/DETAILS;\1;"
       ;;
 
     service)




More information about the Lunar-commits mailing list