From a56a09a0498f2c06dae043c7c73acb9dfad9aaa3 Mon Sep 17 00:00:00 2001 From: lanxu Date: Sun, 17 Dec 2017 14:42:59 +0200 Subject: [PATCH] Added search.sh to make recursive grep searches --- search.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 search.sh diff --git a/search.sh b/search.sh new file mode 100755 index 0000000..4f18f28 --- /dev/null +++ b/search.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +if [ -z $1 ]; then echo "Search requires search string"; exit 1; fi + +grep -Irn "$1" .