One will be surprised on the types of tools that are out there, since the invention of open source community of hackers, the IT world have been transforming at a very fast rate. Some times i may encounter a problem, and one click will deliver tons of result, why reinventing the wheel only takes precious time and resources, whereas the same goal will be achieved at the end, so why not take it and modify to your taste.
I was faced with a little problem today, i needed some materials on a course i am taking from a professor's web page, and there are tons of documents that if i am to go over each, i will waste valuable time that might be useful writing a block of code. So i remembered wget magic, i used once to download files with the same extension from a page, but this time, i need a whole directory and its content. I went through the man page of wget and found some parameters i can include in my bash command to cleanly get me the whole directory and contents without the index.html files. After few minutes i came up with a clean command;
wget -r -nH --cut-dirs=2 --no-parent --reject="index.html*" http://PATH_TO_DIRECTORY and holla:
wget magic at work
This is the point when you sit back and watch your creation at work, feeling like Chuck Norris after defeating the antagonist.
This kinds of tools are enormous, some times i feel they are infinite, all you need is to look for and you will get, some of us are lazy to research, we feel as if reading through man pages is a kind of boring process, but actually its fun, i agree when things don't work as perceived, one feels like the blue screen of death itself, but that is the different between normal developers and hackers, "we never quit, ever". Someone i look up to once quoted to me "When solving a problem, there are failures only ways in which the problem cannot be solvled" and believe me anytime you hit a dead end, you gained a lot because next time you will never go that path again.