Tell me more ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'd like to download a link like:

http://example.org/file.mp3

Now, I'm enough of a shell junkie to know what SCP does, but that's about where my geek-dom ends. So is there a shell program that lets me basically do an http get and pipe it through to a file?

share|improve this question
Please specify your operating system. – Daniel Beck Dec 23 '10 at 23:25
@Beck Good point. Title changed. – fakeit Dec 23 '10 at 23:30
@fakeit If you respond to comments by other users, let them know by writing @PrefixOfUsername in your comment, e.g. @Daniel, @Dan, @fakeit or @fake. This way, they get notified by SuperUser. @Beck is close, but doesn't work. – Daniel Beck Dec 23 '10 at 23:37
@Daniel Ah, thanks for the advice. So, won't everyone with "Daniel" in their prefix get notified too? Or is it smart and only looks for "Daniel's" that have answered / commented? – fakeit Dec 23 '10 at 23:42
1  
At most a single person is ever notified through this @-functionality (so no notifying 20 people by filling your comment with @'s), plus always the person you authored the post on which you comment (that's why you're notified about this comment without an @ to you). It looks backward in time in the same comment thread and takes the most recent matching user. If a "Dan" were to comment here, he and I would be competing for any @Dan notifications by others, @Daniel would go to me though. The prefix must have 3 or more characters, @fa won't work. – Daniel Beck Dec 23 '10 at 23:47
show 1 more comment

1 Answer

up vote 13 down vote accepted
wget http://example.org/file.mp3

(you might need to install it e.g. using Homebrew, MacPorts or Fink -- assuming you're still on Mac OS X)

Alternatively, you can use curl, which is standard on Mac OS X:

curl http://example.org/file.mp3 > local_filename.mp3
share|improve this answer
Wow, you are just following me around and solving my problems today :). Well done sir. – fakeit Dec 23 '10 at 23:29
@fakeit Don't let it go to your head, just busy reloading the front page ;) – Daniel Beck Dec 23 '10 at 23:32

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.