Search replace for Windows?

Started by Rumbas, March 21, 2017, 07:23:18 AM

Previous topic - Next topic

Rumbas

I remember RC using some nice program to do bulk search/replace in a bunch of html files without opening them etc.

I don't remember which one though? ..and doing searches yields nothing but hacked malware sites..

ukgimp


Adam C

Vague recollection of doing something similar with Textpad, Notepad++ or another package I used to use about 10 years ago whose name escapes me now, but think it was part of the Dreamweaver suite but less of a WYSIWYG and more of an HTML editor.

ukgimp

Yes, Dreamweaver does that. I forgot. It even gives a warning, that it cannot be undone. Very good for template changes.

Rupert

Dreamweaver, that brings back memories.

I dont think editplus does it.

Notepad++  does, just tried it on 3 files. did hang for a few secs so not sure what happens if you have 100 files or more.

... Make sure you live before you die.

Rooftop

I had a friend knock up a little utility to do this using Delphi some years back.  Took him about 15 minutes.
From memory Dreamweaver needed to index the folders as a site before it would do it (may be entirely wrong - very long time since I used it). If that isn't an option you might be able to get someone off upwork to knock something up

JasonD

Gimpy said grep, I'd suggest SED

Both are 'nix utilities.

This is a Powershell equivalent.

https://blogs.msdn.microsoft.com/zainnab/2007/07/08/grep-and-sed-with-powershell/

rcjordan

#7
Ultraedit

<added>
I rolled back to Ver 6 because I felt UE was subject to creeping elegance.

rcjordan

>Ver 6

Correction: Ver 7.10a

In toolbar: Search > Replace In Files


Chunkford

"If my answers frighten you then you should cease asking scary questions"

Chunkford

Quote from: Chunkford on March 21, 2017, 11:24:36 AM
I use this everyday, I'd be lost without it - http://astrogrep.sourceforge.net/

EDIT: actually, not sure it does replace, only ever used it to track down stuff
"If my answers frighten you then you should cease asking scary questions"

Rumbas

Wow, you guys are fast today! Thanks!

Torben also reminded me about UltraEdit which is the superior text editor.

Got suggested Notepad++ as well. Free. Did the job.

https://notepad-plus-plus.org/download/v7.3.3.html
http://www.ultraedit.com/

rcjordan

>Notepad++

Will it do regex f&r ?

Rumbas


rcjordan

Good to know, thanks.  I get occasional how-do-you-do-that requests from semi-techie family members. UE is overkill, too powerful, and not free.  It's ui -at least in the old ver I use- is a little, errr, stark for those who live in the gui world. (Which is another reason why I like it V7.)

>too powerful

Hhh. ANYTHING that will do recursive regex on local files is too powerful for semi-techs ...but they'll soon learn to sit on their hands awhile and think before pushing the button.

<added>
There's no 'undo' in UE file f&r.