I would like to use curl to show/save the text between two tags of a html file that is stored on the same server. Curl needs to show/save the text between: <head> and <div id="jh_outerWrapper"> It will be done from bash. Can this be done with Curl or should I use an other tool to do this? Any help appreciated!
I think you might try using "sed". It's not that easy to handle in my opinion, but worth a try. Curl itself does not offer such functionality, as far as I know. The easiest way might be implementing this script in perl or php though.