Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a server, and I need to change around 1200 HTML files. Is there an editor that will find and replace columns in multiple files?

Currently, I am using Notepad++ for editing, but I'm struggling with a column based search faction.

I have something like this:

   <td class="data"><sup>58</sup>Co</td>
   <td class="data">0.</td>
   <td class="data">70.8 d</td>
   <td class="data">2<sup>+</sup></td>
   <td class="data">+4.044(8)</td>
   <td class="data"></td>
   <td class="data">[<sup>59</sup>Co]</td>
   <td class="data">NMR/ON</td>
   <td class="data">1972Ni01</td>

I want to replace all <td class="data">, leaving the rest of the code untouched, with:

 <td class="isot">
 <td class="ener">
 <td class="life">
 <td class="spin">
 <td class="gfac">
 <td class="quad">
 <td class="ref_">
 <td class="meth">
 <td class="cite">

As you have noticed, the data changes to isot, ener, etc.

So I need an editor which will find and replace only the columns.

I have tried Notepad++ as I mentioned and UltraEdit but with no help. My current solution is a macro-based replace which still is very handy and I have over a thousand files to change.


migration rejected from Sep 2 at 0:58

This question came from our site for professional and enthusiast programmers. Votes, comments, and answers are locked due to the question being closed here, but it may be eligible for editing and reopening on the site where it originated.

closed as off-topic by Journeyman Geek Sep 2 at 0:58

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions seeking product, service, or learning material recommendations are off-topic because they become outdated quickly and attract opinion-based answers. Instead, describe your situation and the specific problem you're trying to solve. Share your research. Here are a few suggestions on how to properly ask this type of question." – Journeyman Geek
If this question can be reworded to fit the rules in the help center, please edit the question.

This question seems valid and I don't see a reason to remove it. Please don't vandalize your post to get it removed @Kostas. This will result in your account being suspended if it continues. – nhinkle Feb 5 '12 at 22:39

Browse other questions tagged or ask your own question.