Getting a web page and parsing it

Discussion in 'Command Line' started by Jal123, Sep 19, 2012.

  1. Jal123

    Jal123 New Member

    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hi,
    I have been trying but i am stuck up with an issue of how to get a web page and grep it for a pattern.for example how do i get a google homepage in text format ,save it in a file and grep for a pattern google.Please someone help on this as i am nearing my project final date.Any help would be very useful.

  2. steelmanronald06

    steelmanronald06 Administrator Staff Member Staff Writer

    Messages:
    32
    Likes Received:
    7
    Trophy Points:
    8
  3. KenJackson

    KenJackson Active Member

    Messages:
    129
    Likes Received:
    27
    Trophy Points:
    28
    Install lynx, if you don't already have it.
    (On Fedora use "yum install lynx" as root.)

    Then try this:
    Code:
    lynx -dump http://google.com/

Share This Page