Do this in several processes:
for i in {1..50} do curl -O http://www.university.edu/~prof/lect$i/lect$i.pdf & done
or as single line (just different formatting):
for i in {1..50}; do curl -O http://www.university.edu/~prof/lect$i/lect$i.pdf & done
& executes all processes in parallel.
Do not be afraid of going out; the shell tells you that 50 processes have been started, which is a lot of spam. He will later tell you about each of them that they have stopped. Lots of results again.
You probably don't want to run all 50 in parallel; -)
EDIT:
Your example using {1..50} twice makes a matrix of numbers. See for example echo {1..3}/{1..3} to understand what I mean. And I guess that way you create a lot of 404s.
source share