0

I have a for loop that is curling the contents of a file, the file contains 2 million web addresses.

I woud like to create a for loop that instead of curling the address 1 at a time, curls 1000 at once.

At the moment my for loop is as follows:

for i in `cat file.txt`; do
    curl $i
done

How can I acheive this?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.