Edit .txt files in BULK

by 9 replies
11







----------------------------------------------------------
#programming #bulk #edit #files #txt
  • I remember building some software to do this last year sometime, the source codes not on this computer but it should be on a backup external drive at home.

    Let me know if you are using a windows pc and i'll grab it for you when I get home later if you want..
  • There has been tools to do this for ages.

    Are you on a Mac or do you have access to a Linux machine?

    It is called sed. Sed - An Introduction and Tutorial

    Here is how you would do it on the terminal:
    1. place all the text files into a single directory.
    2. type in "sed "s/'Article Body:'/''/g" *.txt"

    tada your done.
    • [1] reply
  • Banned
    [DELETED]
    • [1] reply
    • its just 5 lines of code with C#.NET

      If you want I can do happily for you.
      • [1] reply
  • Surely you want the article title too?

    This is a trivial job in PHP. You can get that done on Fiverr probably.

    HTH

    Glenn
  • Another way of doing it is by using Autoit - AutoIt - AutoItScript
    I've found this a really easy way to do basic things like this - without having to fire up Visual Studio, etc.. to use something more full on like C#
    • [ 1 ] Thanks
  • Ultraedit has very fast search and replace with regular expressions

Next Topics on Trending Feed