X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib.sh;h=474f638c42c8fc858418656ca59ad73e9adab8da;hb=0d6b1deba13390ed289d4c933e0a05da7d031e5e;hp=7bb1d5c9ea9851a6e55e032dd9e5509cdc86fd26;hpb=09e54d93c10f54b3c17af0c9dff9b8077cca06d6;p=config%2Fdotfiles.git diff --git a/lib.sh b/lib.sh index 7bb1d5c..474f638 100644 --- 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 ... # @@ -105,11 +108,13 @@ simple_cpp() { } # Print the current OS. The following OS are supported at the moment: +# # - Debian (debian) # - Gentoo (gentoo) # - Mac OS X (darwin) # - Solaris/OpenSolaris (sun) # - FreeBSD (freebsd) +# # If an unsupported OS is used an error is printed. os() { if test -f /etc/debian_version; then