From 60095edb75c9822a43d9ce2b6febd01452adb401 Mon Sep 17 00:00:00 2001 From: curben Date: Wed, 29 May 2019 15:26:46 +0930 Subject: [PATCH] refactor: remove '#' comment using grep sed didn't work so well, it left a new line at the top. --- script.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script.sh b/script.sh index bb0dccf1..37c4d289 100644 --- a/script.sh +++ b/script.sh @@ -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.