refactor: remove '-e' parameter of sed

not necessary if there is only one script
https://unix.stackexchange.com/a/33159
This commit is contained in:
curben 2019-05-17 18:13:26 +09:30
parent f2b62fd1ee
commit ea6c3f6796
4 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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