You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is not in python but in the run.sh logic:
$ echo -ne "a\nb" > shared/ips.txt
$ (while IFS='' read -r line;do echo "$line";done < shared/ips.txt)
a
$ cat -A shared/ips.txt
a$
b
Because 'read' by default uses newline as delimiter it only reads lines that have a newline at the end of the line.
A possible solution is to use a command that adds a newline to every printed line, e.g. $ while read -r line;do echo "$line";done < <(grep "" shared/ips.txt) (source: https://stackoverflow.com/a/31397871/7888054)
If this solution is ok for @cloudflare I could create a PR.
vincentclee
changed the title
shared/ips.txt - last IP requires a endline character inorder to be scanned
shared/ips.txt - last IP requires a endline character inorder to be scanned 🇺🇦
Jan 5, 2023
Scenario 1: File with endline character
shared/ips.txt
Scenario 2: File without endline character
shared/ips.txt
run
The text was updated successfully, but these errors were encountered: