create a loop in mac terminal code example Example: macos terminal for loop for i in {1..100}; do echo http://www.example.com/${i}.jpg; done