1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[Linux] Help removing characters from scraped URLs

Discussion in 'General Programming Chat' started by MikeHustle, Oct 27, 2009.

  1. MikeHustle

    MikeHustle Power Member

    Joined:
    Mar 1, 2009
    Messages:
    634
    Likes Received:
    236
    I used grep to scrape several urls, but I'm having trouble removing the last few useless characters.

    Here's an example: .profile&duid=25970313">energyfitusa20057780</a><

    I need to remove everything after the "...........................

    I'm looking into SED and AWK, but I haven't found a solution yet.

    Thanks