Answer the question
In order to leave comments, you need to log in
How to get a list of valid files from a list of url files?
Hello. There was a task from the list of the form (about 5000 in total):
mysite1.ru/upload.zip
mysite2.ru/dle.gzip
#!/bin/bash
while read LINE; do
curl -o /dev/null --silent --head --write-out "%{http_code} $LINE\n" "$LINE"
done < url-list.txt
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question