From ea6c3f67963a781dd3b20fa819d51a704ce4f863 Mon Sep 17 00:00:00 2001 From: curben Date: Fri, 17 May 2019 18:13:26 +0930 Subject: [PATCH] refactor: remove '-e' parameter of sed not necessary if there is only one script https://unix.stackexchange.com/a/33159 --- utils/malware-domains.sh | 2 +- utils/malware-url-top-domains.sh | 2 +- utils/umbrella-top-1m.sh | 2 +- utils/urlhaus-top-domains.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/utils/malware-domains.sh b/utils/malware-domains.sh index 2606aa25..ed16c373 100644 --- a/utils/malware-domains.sh +++ b/utils/malware-domains.sh @@ -14,7 +14,7 @@ cut -f 1 -d ':' | \ # Remove www # Only matches domains that start with www # Not examplewww.com -sed -e 's/^www\.//g' | \ +sed 's/^www\.//g' | \ # Sort and remove duplicates sort -u | \ # Exclude Umbrella Top 1M and well-known domains diff --git a/utils/malware-url-top-domains.sh b/utils/malware-url-top-domains.sh index 6df3efe4..65a704ce 100644 --- a/utils/malware-url-top-domains.sh +++ b/utils/malware-url-top-domains.sh @@ -14,7 +14,7 @@ cut -f 1- -d ':' | \ # Remove www # Only matches domains that start with www # Not examplewww.com -sed -e 's/^www\.//g' | \ +sed 's/^www\.//g' | \ # Sort and remove duplicates sort -u | \ # Parse URLs from popular domains only diff --git a/utils/umbrella-top-1m.sh b/utils/umbrella-top-1m.sh index 751f61b4..999055d9 100644 --- a/utils/umbrella-top-1m.sh +++ b/utils/umbrella-top-1m.sh @@ -15,7 +15,7 @@ grep -F '.' | \ # Remove www # Only matches domains that start with www # Not examplewww.com -sed -e 's/^www\.//g' | \ +sed 's/^www\.//g' | \ # Remove duplicates sort -u > top-1m.txt diff --git a/utils/urlhaus-top-domains.sh b/utils/urlhaus-top-domains.sh index b8e9af98..1f836399 100644 --- a/utils/urlhaus-top-domains.sh +++ b/utils/urlhaus-top-domains.sh @@ -14,7 +14,7 @@ cut -f 1 -d ':' | \ # Remove www # Only matches domains that start with www # Not examplewww.com -sed -e 's/^www\.//g' | \ +sed 's/^www\.//g' | \ # Sort and remove duplicates sort -u | \ # Exclude Umbrella Top 1M and well-known domains