here is a shell script which takes domain and its parameters to find status code . this runs way faster due to threading but misses lot of requests.while IFS= read -r url <&3; do    while IFS= read -r uri <&4; do    urlstatus=$(curl -o /dev/null --insecure --silent --head --write-out  '%{http_code}' ${url}${uri} --max-time 5 ) &&    echo $url  $urlstatus $uri >> urlstatus.txt &done 4<uri.txt done 3<url.txtif i ran normally it process all requests but the speed is very low. is there a way through which speed is maintained and it also not misses all requests .
Bash script multithreading in curl commands
bash;curl;multithreading
You are experiencing the problem of appending to a file in parallel. The easy answer is: Don't.Here is how you can do it using GNU Parallel:doit() {    url=$1    uri=$2    urlstatus=$(curl -o /dev/null --insecure --silent --head --write-out  '%{http_code}' ${url}${uri} --max-time 5 ) &&    echo $url  $urlstatus $uri}export -f doitparallel -j200 doit :::: url uri >> urlstatus.txtGNU Parallel defaults to serializing the output, so you will not get output from one job that is mixed with output from another.