Permalink
Browse files

discover function

  • Loading branch information...
1 parent 62da800 commit 7636afb4b845ef3e07164f8ad5512498b750b6d9 @gotbletu committed May 29, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 locate_discover.txt
View
@@ -0,0 +1,4 @@
+discover () {
+ keyword=$(echo "$@" | sed 's/ /.*/g' | sed 's:|:\\|:g' | sed 's:(:\\(:g' | sed 's:):\\):g')
+ locate -ir $keyword
+}

0 comments on commit 7636afb

Please sign in to comment.