From b45ff1a8cd5dfd5bd6ce57a0b83fe529207e84de Mon Sep 17 00:00:00 2001 From: Roberto Cirillo Date: Fri, 12 Feb 2021 17:17:42 +0100 Subject: [PATCH] Add '27-01-2021-grepString/grepHttp.sh' new script for searching "http://" string --- 27-01-2021-grepString/grepHttp.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 27-01-2021-grepString/grepHttp.sh diff --git a/27-01-2021-grepString/grepHttp.sh b/27-01-2021-grepString/grepHttp.sh new file mode 100644 index 0000000..e5e5d47 --- /dev/null +++ b/27-01-2021-grepString/grepHttp.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash +if [[ "$(grep -r 'http://' .)" ]]; then + echo "http protocol found" +else + echo "http protocol not found" +fi \ No newline at end of file