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

Any tool to add a word before text in every line ?

Discussion in 'BlackHat Lounge' started by MethShow, Mar 19, 2011.

  1. MethShow

    MethShow Registered Member

    Joined:
    Jan 24, 2011
    Messages:
    57
    Likes Received:
    2
    Hey guys, do you know any tool to add a word before text in every line ?

    Eg:

    I have a text file with list of names like this -

    aaa
    bbb
    ccc

    I want to make it like this -

    word aaa
    word bbb
    word ccc

    Do you know any such tool.

    Thanks
     
  2. brent360

    brent360 Junior Member

    Joined:
    Feb 16, 2011
    Messages:
    102
    Likes Received:
    256
    The program you need is http://notepad-plus-plus.org/.

    I made you a quick guide. To reach the menu in the guide, press the "control+F" key combo while using Notepad++.

    [​IMG]
     
  3. BigLarry

    BigLarry Regular Member

    Joined:
    Mar 2, 2011
    Messages:
    218
    Likes Received:
    144
    Replace with: word

    should I think say:

    replace with: \nword (ie backslash n word)
     
  4. brent360

    brent360 Junior Member

    Joined:
    Feb 16, 2011
    Messages:
    102
    Likes Received:
    256
    Find what: \n
    Replace with: word(space)

    Make sure the "extended search" bubble is selected.
     
  5. BigLarry

    BigLarry Regular Member

    Joined:
    Mar 2, 2011
    Messages:
    218
    Likes Received:
    144
    Won't that put all his words on one line because it's removed the newline (\n) ?
     
  6. Jayemdae

    Jayemdae Newbie

    Joined:
    Feb 15, 2010
    Messages:
    46
    Likes Received:
    36
    Occupation:
    Techie
    Location:
    Indianapolis, IN
    The steps Brent360 listed are correct for Notepad++. It will not put all the separate lines onto one line.
     
    • Thanks Thanks x 1
  7. sxmcdo6

    sxmcdo6 Newbie

    Joined:
    Sep 7, 2009
    Messages:
    9
    Likes Received:
    13
    Can't you just use excel?

    Import using text to columns

    Fill your "word" down in an adjacent column

    Concatenate text in both columns together
     
  8. MethShow

    MethShow Registered Member

    Joined:
    Jan 24, 2011
    Messages:
    57
    Likes Received:
    2
    Ok I got it, thanks.
     
  9. bavahz

    bavahz Registered Member

    Joined:
    Nov 26, 2008
    Messages:
    65
    Likes Received:
    103
    Occupation:
    marketing rep
    Location:
    Milwaukee area
    EditPadPro has a "Prefix","Suffix" function.(I suspect other editors have similar function)
    I just select the block of text that I want to add schtupf to and then select Prefix, then type in what I want to add and Bada-Bing Bada-Boom it works ;)or like Gomer Pyle might say...SHAZAM!
    J
     
  10. satyawrat

    satyawrat Jr. VIP Jr. VIP

    Joined:
    Jul 8, 2009
    Messages:
    972
    Likes Received:
    1,198
    Occupation:
    Hustler
    Location:
    Gurgaon
    Home Page:
    I had opened up C IDE to make a proggy for that.. you saved me form the hassle of my ugly code...
     
  11. chris456

    chris456 Regular Member

    Joined:
    May 17, 2010
    Messages:
    281
    Likes Received:
    567
    TextPipe Pro , you will find it here on bhw , and in help it is clearly explained how to insert the word on every line.