refactor: remove '#' comment using grep

sed didn't work so well, it left a new line at the top.
This commit is contained in:
curben 2019-05-29 15:26:46 +09:30
parent c2a4f3f579
commit 60095edb75
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ cat ../src/URLhaus.txt | \
# Convert DOS to Unix line ending
dos2unix | \
# Remove comment
sed 's/^#.*//g' | \
grep -F '//' | \
# Remove http(s)://
cut -f 3- -d '/' | \
# Remove www.