Saturday, February 23, 2013

grep IP addresses with regular expressions

If addresses.txt contains lines of addresses, this grep command will give you only the lines with a valid IP address and nothing else.

cat addresses.txt | grep '^[0-9]\{1,3\}.[0-9]\{1,3\}.[0-9]\{1,3\}.[0-9]\{1,3\}$'`


  1. Every weekend i used to visit this web page, because i
    want enjoyment, since this this site conations truly nice funny stuff

    Also visit my web-site registry cleaner software

  2. I almost never leave a response, but I read a few of the remarks on "grep IP addresses with regular expressions".
    I actually do have a few questions for you if you do not mind.

    Is it only me or does it look like a few of the comments look
    like they are coming from brain dead individuals? :-P And, if you are writing on additional sites, I would like to keep
    up with you. Could you list of the complete urls of your shared sites
    like your twitter feed, Facebook page or linkedin profile?

    Also visit my webpage: free xbox live membership.get xbox live codes free

  3. First off I would like to say fantastic blog! I had a quick question in which I'd like to ask if you don't mind.
    I was interested to find out how you center yourself and clear
    your mind prior to writing. I've had trouble clearing my mind in getting my ideas out. I do take pleasure in writing however it just seems like the first 10 to 15 minutes are wasted simply just trying to figure out how to begin. Any ideas or hints? Many thanks!

    Feel free to visit my web-site - free xbox live membership.get xbox live codes free

  4. Theу cаn аlѕο offeг a decorativе element to the room.
    Investing in this tуpе of lighting unit is somethіng that you should do for уou сan
    be sittіng in your living room, dining rоom or bedroom аnd marveling
    at the lights and beautiful blades that they have plus you
    get to еxperience cоol breezes at the same time.
    Τhese use inсandеscеnt bulbs for a ѕoft warm lіght.

    Also visit my blog pоst :: harbor breeze ceiling fans with lights and remote
    My web site > hampton bay ceiling fans with lights and remote install instructions

  5. Thank you for any other great post. Where else may just anybody
    get that type of information in such a perfect approach of writing?
    I've a presentation subsequent week, and I am on the look for such info.

    my web-site - Dayton Movers