]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
lib.sh: Add grep_i().
authorSimon Ruderich <simon@ruderich.org>
Wed, 23 Oct 2013 23:07:36 +0000 (01:07 +0200)
committerSimon Ruderich <simon@ruderich.org>
Wed, 23 Oct 2013 23:07:36 +0000 (01:07 +0200)
lib.sh

diff --git a/lib.sh b/lib.sh
index bdb74874c28cc7e2534e740d8160d4f4abbcb94c..474f638c42c8fc858418656ca59ad73e9adab8da 100644 (file)
--- a/lib.sh
+++ b/lib.sh
@@ -72,6 +72,9 @@ cmd_i() {
 sed_i() {
     cmd_i sed "$@"
 }
+grep_i() {
+    cmd_i grep "$@"
+}
 
 # Usage: perl_line_filter <cmd> ...
 #