Purchase Linux CDs / DVDs / Flash Drives at OSDisc.com

Welcome to Our Community

While Linux.org has been around for a while, we recently changed management and had to purge most of the content (including users). If you signed up before April 23rd please sign up again. Thanks!

Getting a web page and parsing it

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

  1. Jal123

    Jal123 Guest

    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. KenJackson

    KenJackson Guest

    Install lynx, if you don't already have it.
    (On Fedora use "yum install lynx" as root.)

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

Share This Page