aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/%HOME%/.bash_utils
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2017-01-20 05:24:45 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2017-01-20 05:24:45 +0300
commita038cecc2aecbdb596c286e20722a4effe11e704 (patch)
treed659a2316c4a35acc5f84f674eb29fc1aba7602c /%HOME%/.bash_utils
parentbranch_eol_normalized: bugfix (diff)
downloadlinux-home-a038cecc2aecbdb596c286e20722a4effe11e704.tar.gz
linux-home-a038cecc2aecbdb596c286e20722a4effe11e704.zip
remove str_invert_match
I can't remember what it's for anyway.
Diffstat (limited to '%HOME%/.bash_utils')
-rw-r--r--%HOME%/.bash_utils/text.sh18
1 files changed, 0 insertions, 18 deletions
diff --git a/%HOME%/.bash_utils/text.sh b/%HOME%/.bash_utils/text.sh
index 22c20e3..15fb17f 100644
--- a/%HOME%/.bash_utils/text.sh
+++ b/%HOME%/.bash_utils/text.sh
@@ -205,21 +205,3 @@ str_join() (
;;
esac
)
-
-str_invert_match() (
- set -o errexit -o nounset -o pipefail
-
- local -a pattern_list=()
-
- local pattern
- for pattern; do
- pattern_list+=('-e' "$pattern")
- done
-
- if [ "${#pattern_list[@]}" -eq 0 ]; then
- cat
- else
- grep --fixed-strings --invert-match \
- ${pattern_list[@]+"${pattern_list[@]}"}
- fi
-)