From 9533f86d18a12a2e5472bc5273cfa9c13d53fc13 Mon Sep 17 00:00:00 2001 From: Bepis <74669749+Pyr0sec@users.noreply.github.com> Date: Tue, 7 Jun 2022 18:02:37 +0530 Subject: [PATCH] "| tee" not required at line 29 removed "| tee" from line 29 because not required and was probably the reason for this error which showed up after the script ran "parse error: Invalid numeric literal at line 1, column 7" --- subdomain.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subdomain.sh b/subdomain.sh index 8b6b37e..30c4baa 100755 --- a/subdomain.sh +++ b/subdomain.sh @@ -26,7 +26,7 @@ getSubdomains(){ if [[ -e $1 && -s $1 ]]; then # file exists and is not zero size cat dnsdumpster.html | grep "https://api.hackertarget.com/httpheaders" | grep -o "\w.*$1" | cut -d "/" -f7 | grep '.' | sort -u >> tmp.txt fi - cat tmp.txt | grep -iv "*" | sort -u | grep $1 | tee + cat tmp.txt | grep -iv "*" | sort -u | grep $1 rm -rf dnsdumpster.html rm -rf tmp.txt }