help: Curl get between

Discussion in 'Programming/Scripts' started by edge, Nov 10, 2013.

  1. edge

    edge Active Member Moderator

    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!
  2. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    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.

Share This Page