Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3496100
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T12:12:26+00:00 2026-05-18T12:12:26+00:00

I posted earlier needing help with a script to read a list of .mp3

  • 0

I posted earlier needing help with a script to read a list of “.mp3” URLs from a text file (“URLs.txt”), download each file, rename in numerical order (1,2,3…), and then save to “URLs” folder on Desktop:

URLs.txt
http://…34566.mp3
http://…234.mp3
http://…126567.mp3

…becomes…

URLs Desktop folder
1.mp3
2.mp3
3.mp3

Shortly after, I kindly received the following response in Unix bash (for use in Automator):

#!/bin/bash
mkdir -p ~/Desktop/URLs
n=1
while read mp3; do
  curl "$mp3" > ~/Desktop/URLs/$n.mp3
  ((n++))
done < ~/Desktop/URLs.txt

However, although the script runs fine, it will only download files up to the range of “47.mp3” – “49.mp3”. The script doesn’t stop, it just doesn’t download anything beyond this range…

I’m very new to Unix bash, and excuse my ignorance, but is it possible that there’s a “50 limit” on script or webpage?

I’m not sure how many URLs my text file has, but it’s well over 49.

I’ve looked through the text file to ensure that all URLs paths are correct and all seems fine…

Also downloaded 47 – 52 manually to make sure that they’re actually able to be downloaded — which they are.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T12:12:27+00:00Added an answer on May 18, 2026 at 12:12 pm

    No, there is no inherent shell script limit that you are hitting.

    Is it possible that the web server you are downloading the MP3s from has a rate limiter which kicks in at 50 downloads in too short a time? If so you will need to slow down your script.

    Try this modification and see what happens if you start at the 50th MP3:

    #!/bin/bash
    mkdir -p ~/Desktop/URLs
    n=1
    while read mp3; do
      ((n >= 50)) && curl "$mp3" > ~/Desktop/URLs/$n.mp3
      ((n++))
    done < ~/Desktop/URLs.txt
    

    If you want to slow it down add a sleep call to the loop.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working from a question I posted earlier ( here ), and trying to
I posted another question earlier about getting the arguments from a context menu App.
Hi I posted this earlier and got some help but still no working solution.
I had earlier posted a query on Java threads. ( link text ) And
I posted earlier about implementing a list view in android, which I managed to
earlier i posted a question about getting a single constant value from a loop
I posted earlier today about template classes, but was pretty far off and got
Well as I have posted earlier too...I have created a site in two languages.One
This is a related question to one I posted earlier... I'm trying to sum
This is a related question to one I posted earlier today, I was initially

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.