Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Apple Computing Products:
macOS - Operating System
Help Please! Need to do a batch find and replace on a directory full of html files
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="technologist" data-source="post: 324041" data-attributes="member: 4134"><p>The easy way....</p><p></p><p>Open TextWrangler (It's free. Google it. If you're editing HTML, you should have it anyway.)</p><p>Choose <strong>Search > Find</strong></p><p>Enter the text you want to search for in the top field</p><p>Enter the replacement text in the second field</p><p>Check the <strong>Multi-File Search</strong> checkbox at the bottom of the window.</p><p>Click the <strong>Other...</strong> button. A file-chooser dialog will open.</p><p>Choose the folder that all of these files are in</p><p>Click <strong>Replace All</strong></p><p>In the next dialog box, Decide whether you'd like the modified files to be opened (so you can review and save them individually) or saved as soon as the changes are made. Then click <strong>Proceed</strong>.</p><p></p><p>And you're done.</p></blockquote><p></p>
[QUOTE="technologist, post: 324041, member: 4134"] The easy way.... Open TextWrangler (It's free. Google it. If you're editing HTML, you should have it anyway.) Choose [b]Search > Find[/b] Enter the text you want to search for in the top field Enter the replacement text in the second field Check the [b]Multi-File Search[/b] checkbox at the bottom of the window. Click the [b]Other...[/b] button. A file-chooser dialog will open. Choose the folder that all of these files are in Click [b]Replace All[/b] In the next dialog box, Decide whether you'd like the modified files to be opened (so you can review and save them individually) or saved as soon as the changes are made. Then click [b]Proceed[/b]. And you're done. [/QUOTE]
Verification
Post reply
Forums
Apple Computing Products:
macOS - Operating System
Help Please! Need to do a batch find and replace on a directory full of html files
Top