Quickly grab and copy HTML & CSS source to the clipboard with curl
This should be a helpful tip for the web developers out there. Using curl and pbcopy, we can quickly grab and copy HTML and CSS code from any URL via the command line.
Getting HTML is just a matter of pointing curl to the URL in question:
curl "http://google.com/" | pbcopy
The HTML will now be in your clipboard for you to paste anywhere else.
Grabbing the CSS requires you to specify where the CSS file is located, otherwise the command is the same:
curl "http://google.com/css/stylesheet.css" | pbcopy
We’ve covered pbcopy & pbpaste a while ago, they’re just command line interfaces for the Mac OS X clipboard but combined with other scripts or utilities can be quite powerful.
If you want to go a step further, you can also quickly mirror a website locally using wget or backup through FTP with wget.

you could use this for more than html and css
[...] involved with the web should get some good use out of the header trick, and web developers can also use curl to copy all the HTML and CSS from a website very quickly. stLight.options({ [...]
[...] Line, Tips & Tricks – July 16th, 2011 – Leave a Comment Using curl we can retrieve the HTML & CSS source code of any specified URL and even the http header info, but some sites serve completely [...]
how thoughtful..making it easy to everyone huh..thanks this would help.:)