Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Easily download web files in the Terminal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Easily download web files in the Terminal
Authored by: obakasan on May 30, '03 10:59:08AM

Neat trick. I modified it a bit so that it would put the target URL from the clipboard onto my desktop, because I tend to use curl from the command line without remembering where I am, and end up with lots of downloaded files in places where I can't find them later.

alias grabfile='cd ~/Desktop && curl -O $(pbpaste) && cd - '

Note that the $(pbpaste) construction (and possibly even the alias='' construction) is specific to bash. Otherwise, replace it with the backticks like in the original hint.

[ Reply to This | # ]

Please HELP!
Authored by: JohnnyBender on Jun 02, '03 10:40:40PM

I can't get this to work, can you please help me?

I've tried pasting:
alias grabfile='cd ~/Desktop && curl -O $(pbpaste) && cd - '

into both my .tcshrc and .bshrc file, but when I type "grabfile" from the terminal, I get the error "grabfile: Command not found."

What am I doing wrong?



[ Reply to This | # ]