Welcome to PlagueFest.com! Log in or Sign up to interact with the Plague Fest community.
  1. Welcome Guest! to interact with the community and gain access to all the site's features.

Notepad++ editing multiple files, replacement

Discussion in Software Sanctuary started by Trond, Jul 1, 2015

  1. Jul 20, 2012
    Posts
    How do I, as an example, do the following, from one file:

    Code:
    {
    <blabla>
      <bla2bla2>
    }
    to look like below in the other opened files, without manually copy&paste?

    Code:
    {
    <blabla>
      <bla2bla2>
      <bla3bla3>
    }
  2. Jun 11, 2012
    Posts
    While I'm not aware of any straight software that can do this. On windows you can use a batch file to insert a text into it.

    On Linux or Mac, I can give you a easy script that does that.

    echo "text stuff I want to insert at the end of the file" > file.txt
    Sorry
    echo "text stuff I want to insert at the end of the file" >> file.txt
    That's about as basic it can get.
  3. Jul 20, 2012
    Posts
    Linux > Windows

    But yeah, I use Windows, because of Steam.
  4. Apr 9, 2007
    Posts
    There's a Find and Replace in Files... It's a tab when you hit control f, or h...
  5. Jun 11, 2012
    Posts
    I've tried somethings but I can't get newline to work on windows 10. So this is lazy way to do it. Unfortunately it adds a addition string quotes that I can't remove. Suggestion, move all the file to linux, do it there, port it back to windows. Easy.

    HTML:
    echo { >> C:\Users\tech\Desktop\DxDiag.txt
    echo "<blabla>" >> C:\Users\tech\Desktop\DxDiag.txt
    echo "<bla2bla2>" >> C:\Users\tech\Desktop\DxDiag.txt
    echo } >> C:\Users\tech\Desktop\DxDiag.txt
    
  6. Jul 20, 2012
    Posts
    I know, but it makes all of it on 1 line, and I want it to be like I showed as example in my 1st post.
    Post Merged, Jul 1, 2015
    That is what I need -- it to work for Windows.
  7. Sep 25, 2010
    Posts
    Find: <blabla>\n\t<bla2bla2>
    Replace:<blabla>\n\t<bla2bla2>\n\t<bla3bla3>

    Make sure extended is selected in search mode.

    Edit:> doesn't seem to work for me.
  8. Jul 20, 2012
    Posts
    Solved it by using VMT Mass Editor in VIDE.