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

Simple Question I'll give you rep :)

Discussion in 'BlackHat Lounge' started by Erik Creed, Oct 29, 2010.

  1. Erik Creed

    Erik Creed BANNED BANNED Premium Member

    Joined:
    Jun 19, 2008
    Messages:
    493
    Likes Received:
    438
    Hi all,

    Ok I need help with something...
    I'm working right now and it's taking me too long time.

    Here's what I need help with.

    I have domains as in:
    http://www.Website1.com
    http://www.Website2.org
    http://www.Website3.net
    And so on I got many of these, I'd like to add some text at the end of each line, on every line, the same text that as.

    So I want the above to become like this:
    http://www.Website1.com/script/
    http://www.Website2.org/script/
    http://www.Website3.net/script/

    As you can see I just added " /script/ " on all lines manually.

    Now how do I do so easily without having to edit thousands of lines by hand?

    I will give you +rep and thanks :)

    NOTE: I don't want to replace anything I just want to add some text at the end of each line.
     
    Last edited: Oct 29, 2010
  2. Blare

    Blare Regular Member

    Joined:
    Aug 20, 2009
    Messages:
    412
    Likes Received:
    103
    Use notepad + and load all your domains.
    And replace ".com" with ".com/script"
     
  3. essares1

    essares1 Junior Member

    Joined:
    Apr 27, 2009
    Messages:
    163
    Likes Received:
    27
    Use Notepad++ to search and replace "\r\n" with "/script/\r\n". Use search mode 'extended' while doing this
     
  4. Fwiffo

    Fwiffo Power Member

    Joined:
    Apr 7, 2010
    Messages:
    562
    Likes Received:
    325
    Occupation:
    Starship Captain
    Location:
    Pluto / Spathiwa
    there might be an easier way, but this works:

    load up excel

    paste the list of URLs into a colum

    put your extension in (/script/) or (script)

    use the concatenate function =concatenate(A1,$B$1) (a1 is the top of the colum of URLs, B1 is the /script/ portion

    drag the full list down to replicate it

    excel and google docs have some pretty nifty tools under "text" functions
     
  5. Erik Creed

    Erik Creed BANNED BANNED Premium Member

    Joined:
    Jun 19, 2008
    Messages:
    493
    Likes Received:
    438
    No I don't want to replace, I just want to add the same text at the end of each line, any simple solution that works?
     
  6. ragster

    ragster Newbie

    Joined:
    Nov 17, 2009
    Messages:
    39
    Likes Received:
    18
    Even though the solutions above use a 'replace' function - they all do what you want - they effectively add text to the end.
     
  7. Erik Creed

    Erik Creed BANNED BANNED Premium Member

    Joined:
    Jun 19, 2008
    Messages:
    493
    Likes Received:
    438
    How?

    They simply replace, I know how to replace all in notepad.exe but I don't want to replace since all domains have different extensions which could mess up my urls.
    Here's an example if I replace .com then how will I be able to replace .com.au and .com.nz? See it messes things up.
     
  8. ohioman

    ohioman Registered Member

    Joined:
    Mar 18, 2010
    Messages:
    69
    Likes Received:
    18
    use notepad, ctrl H

    replace all
    .com -> .com/script/
    .org -> .org/script/
    .net -> .net/script/
     
  9. Erik Creed

    Erik Creed BANNED BANNED Premium Member

    Joined:
    Jun 19, 2008
    Messages:
    493
    Likes Received:
    438

    Yes but that won't work when I have .com .com.au .com.nz .com.tr and so on.

    I know the above and it won't solve my problem.
    I bet it's something simple, but I just don't know what it is.

    So no replacing just adding.
     
  10. THUNDERELVI

    THUNDERELVI Elite Member

    Joined:
    Sep 12, 2009
    Messages:
    2,202
    Likes Received:
    1,729
    Gender:
    Male
    Location:
    W3
    I have the perfect solution for you, since I needed this for my own purposes because I had thousands of lines in txt files that needed a suffix, I searched on Google for about 15min and I finally found it, the website that does this is:

    Code:
    http://textmechanic.com/Add-Prefix-Suffix-to-Text.html
    It's pretty much explanatory, add the lines you want a suffix to be added in the input box at the top of the page, then go to "Add this suffix to each line of text" below and enter /script then click on "Add Prefix and/or suffix" and copy the modified lines from the output box, pretty simple....
     
    • Thanks Thanks x 1
  11. Erik Creed

    Erik Creed BANNED BANNED Premium Member

    Joined:
    Jun 19, 2008
    Messages:
    493
    Likes Received:
    438

    Man YOU KICK ASS!!!

    You just saved me 3-4 days of work LOL

    So that tool says 10,000 lines maximum, you reckon there is a pro version of some kind?

    By the way gave you rep :)
     
  12. THUNDERELVI

    THUNDERELVI Elite Member

    Joined:
    Sep 12, 2009
    Messages:
    2,202
    Likes Received:
    1,729
    Gender:
    Male
    Location:
    W3
    I don't know if there is a pro version but all the other websites I visited had softwares that did this kind of thing but most of them were paid and 2 of them had some kind of virus, I said WTF??? until I found this, it's free and online so u don't have to download anything...

    The site also saved me 5 days of work since I had over 20000 lines that needed a suffix.
    Btw, how many lines do you have? If you have more than 10000, then open multiple tabs on your browser and copy 10000 to each one and get them that's what I did, might take 1-2 minutes but it's better than 3-4 days LOL

    Thanks for the rep, I'm glad I helped you!
     
  13. Erik Creed

    Erik Creed BANNED BANNED Premium Member

    Joined:
    Jun 19, 2008
    Messages:
    493
    Likes Received:
    438
    Multiple browsers why didn't I think of that. Thanks!

    I wonder if we are in the same business here, you into backlinks? LOL
     
  14. nirose

    nirose Senior Member

    Joined:
    Oct 24, 2008
    Messages:
    984
    Likes Received:
    437
    Location:
    somake.us
    you can create a macro at Notepad ++

    and use the run macro to repeat macro on every line.

    It gets all the lines on your text file.
     
  15. THUNDERELVI

    THUNDERELVI Elite Member

    Joined:
    Sep 12, 2009
    Messages:
    2,202
    Likes Received:
    1,729
    Gender:
    Male
    Location:
    W3
    Actually I meant multiple tabs on 1 browser(I use Chrome because it's fast and does the job without crashing like Firefox does sometimes:mad:) but using multiple browsers is good as well and you finish the job faster...

    Yeah we are in the same business, I have used this with backlinks but also used it with keywords I wanted to check with Market Samurai and wanted to add each keyword a suffix to get data for the new modified keywords...
     
  16. contentfreak

    contentfreak Registered Member

    Joined:
    Jun 13, 2010
    Messages:
    82
    Likes Received:
    19
    nice question and thanks for sharing that link with us man, i had the same problem too, was using macros but this is much better.