BashDL is a project mainly written in Shell, it's free.
Old script that may or may not work (I honestly cant remember) to download stuff.
This was a bash script I once started writing.
It uses a lot of interesting bash techniques (imho - fun stuff with arrays and such).
WARNING: It's been so long I cannot remember wether this still works or actually does anything. Code should be pretty well documented.