From 4fd2169d0de36dfb5c89579f165a736467018df9 Mon Sep 17 00:00:00 2001 From: mattiaborsarini Date: Wed, 11 Aug 2021 15:13:49 +0200 Subject: [PATCH] bashrc.cust: Add 'findstring' function --- bashrc.cust | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bashrc.cust b/bashrc.cust index 3c073f4..c3953c9 100644 --- a/bashrc.cust +++ b/bashrc.cust @@ -36,6 +36,10 @@ function cust-error { exit 1 } +function findstring { + find . -type f -exec grep --color=auto -i "$@" "{}" + +} + function getalias { alias "$1" |cut -d "=" -f 2- |sed "s/.//; s/.$//" } \ No newline at end of file