diff options
author | lookshe <github@lookshe.org> | 2019-06-12 22:02:50 +0200 |
---|---|---|
committer | lookshe <github@lookshe.org> | 2019-06-12 22:02:50 +0200 |
commit | e85bcc457ccaa3c17fed79396d27492dc7e496bd (patch) | |
tree | dfe8cae0cb3bb2f4a3282be0d8ad46946c023df9 | |
parent | efaa44fdbbbe8dfe9bf3718186eb71dd81199ab1 (diff) |
replace CRLF with LF after downloading files
-rwxr-xr-x | retrieveAdBlocklists.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/retrieveAdBlocklists.sh b/retrieveAdBlocklists.sh index 38643c0..798c227 100755 --- a/retrieveAdBlocklists.sh +++ b/retrieveAdBlocklists.sh @@ -1,3 +1,4 @@ #!/bin/bash rm -rf adlists/* awk -F'|' '{system("wget -q -O adlists/" $1 " " $2)}' adfilelist.txt +perl -pi -e 's/\r\n/\n/g' adlists/* |