Need to bulk edit 1000s of Text Files!

Discussion in 'Black Hat SEO' started by Vaolla, Dec 24, 2010.

  1. Vaolla

    Vaolla Registered Member

    Joined:
    Aug 7, 2010
    Messages:
    90
    Likes Received:
    12
    I need to bulk edit 1000s of text files! I need to e.g. delete line 4 in all of them!

    How can I achieve that? any tool? (need Free ones:))
     
  2. namewithnogaps

    namewithnogaps Junior Member

    Joined:
    Mar 28, 2010
    Messages:
    199
    Likes Received:
    74
    hey got gtalk? i can tell you how to do that easily :)

    pm me
     
  3. JinxY

    JinxY Regular Member

    Joined:
    May 14, 2007
    Messages:
    376
    Likes Received:
    66
    You can do it with sed:
    Code:
    sed '4d' file.txt
    and for more files would be
    Code:
    sed '4d' *.txt
    Sed is a linux app, bu there is a windows version too.
     
  4. zachtan

    zachtan Newbie

    Joined:
    Oct 11, 2010
    Messages:
    17
    Likes Received:
    4
    Google simple search replace. It's a windows based software. First backup your files. Run the software. Just type in whatever in line 4 in find what_text. Tick replace with:. Leave the box next to it blank. Just make sure text in line4 is unique. It's free btw.
     
    • Thanks Thanks x 1
    Last edited: Dec 25, 2010
  5. Vaolla

    Vaolla Registered Member

    Joined:
    Aug 7, 2010
    Messages:
    90
    Likes Received:
    12
    Thanks,

    but line 4 is not same in all the files, e.g. line 4 may be a unique #! than obviously this s/w wont help! isn't it?

    Note: I have downloaded search replace, quite a neat s/w! But doesnt do what I wanted
     
  6. s4nt0s

    s4nt0s Jr. VIP Jr. VIP Premium Member

    Joined:
    Jul 10, 2009
    Messages:
    4,392
    Likes Received:
    2,146
    Location:
    Texas
  7. TapTapper

    TapTapper Junior Member

    Joined:
    Apr 15, 2009
    Messages:
    181
    Likes Received:
    147
    Occupation:
    coder, webstore mangler
    Location:
    US
    Home Page:
    Dr3amw3aver has the most robust search/replace I've ever seen. Selection, all open files, all files in a dir. Most apps will crap out having to go through a large enough dir but I've used DW to mass edit over 5,000 files and it's 100% perfect. You can prob find a "Portable DW" to borrow
     
    • Thanks Thanks x 1
  8. Vaolla

    Vaolla Registered Member

    Joined:
    Aug 7, 2010
    Messages:
    90
    Likes Received:
    12
    ok I have been searching for this for 1 week now! but to no avail! =s

    May be I should outsource the work, or get someone on Freelancer dot com to write the program for me!
     
  9. likeskoolaid

    likeskoolaid Regular Member

    Joined:
    Dec 27, 2009
    Messages:
    352
    Likes Received:
    105
    Occupation:
    \˚ㄥ˚\
    Location:
    \ᇂ_ᇂ\
    yes dreamweaver is what i use, they also have wildcards so you can remove stuff that is different on each line
     
  10. JinxY

    JinxY Regular Member

    Joined:
    May 14, 2007
    Messages:
    376
    Likes Received:
    66
    Mate, I posted above the solution but if you can't do it, then PM me an offer and I can do the job.
     
  11. Vaolla

    Vaolla Registered Member

    Joined:
    Aug 7, 2010
    Messages:
    90
    Likes Received:
    12
    Oh, I think I missed your first post! :)
    I am now looking into it! Will let you know if I fail! :)
     
  12. zelma143

    zelma143 Power Member

    Joined:
    Jun 25, 2010
    Messages:
    573
    Likes Received:
    37
    Occupation:
    PHP programmer,Bot maker,iMacro script maker
    hey try to make with php...

    it will be couple of line code and will do it very faster
     
  13. artur6000

    artur6000 BANNED BANNED

    Joined:
    Jan 2, 2010
    Messages:
    188
    Likes Received:
    171
    record a macro for this :)
     
  14. artur6000

    artur6000 BANNED BANNED

    Joined:
    Jan 2, 2010
    Messages:
    188
    Likes Received:
    171
    make a macro for this man :)