Coding Tutorial: How to Find and Replace in Multiple Files using Notepad++

Coding Tutorial: How to Find and Replace in Multiple Files using Notepad++


Yan Sheng Huang explains how to find and replace in multiple files within any version of Windows using Notepad++. This alleviates having to deal with complicated methods such as connecting to a Linux server using SSH and using commands such as grep. This method of find and replace across multiple files will work if the files are all within one directory as well as if they are spread out into sub directories, sub sub directories, etc.
Closed Caption:

so in this tutorial I'm going to walk
you through how to do a fine replace
across multiple files and you can do it
through multiple files within the same
directory or if you want to across the
art of the sub directories and sub sub
directories and so forth
you'll be able to as well so basically
what you need this you need first
notepad plus plus which is completely
free so you can actually go to google
type in notepad notepad plus plus and
then go to the first page here and click
on download and this multiple options
but just go ahead and click on the first
option here are basically this one says
take this one if you have no idea which
one you should take so go ahead and take
this one
download it install it and then you
should be able to i open it which looks
something like this
so what we're going to do in this
demonstration is I have a a website here
and if I right click select all right
click and go to properties
there's over 8,000 files so if I want to
do a final place across all those files
it will be quite tedious to do so and if
it happens to be in every single file
I it also in addition to be tedious it's
being insane
so what I'll do is I'm going to open the
right-click other with no purpose plus
and then scroll down and i'm going to
maybe change the copyright across off
the different pages on this HTML website
so
just thrown down okay here we go
so basically let's say I want to change
this instep 2014 copyright I wanted a
copyright 2014
so what i can do is our size selected
that copy and now go to edit or search
fine and then i can paste that here and
then and then what I want to do is I
want to swap that around is I can then
cut this and here we go so now I want
what this basically does is it was fine
this in this document and replace it
with this in this document and click on
replace then you should replace that but
this is only for this document so how do
you do that for all the other foot files
within that I yeah that folder so the
way you would do is go to find files and
then now basically I have the fine field
and replace with field so for filters
just put you can leave it alone or put
armed Astrix dot Astrix and basically
that says that that doesn't matter what
the file name is it doesn't matter
whether the file extension is now if you
want to be restricted to only H
telepaths then you do that or likewise
with text box you do that i'm just going
to leave that alone and you can check if
you want to do the replacing all the
subfolders or if you just want to in
main folder i'm not going to check that
is because to go through all eight
thousand of files and whatnot it's
probably gonna make this video last very
long so I'm going to abort it doing that
for search mode you can leave as normal
or extend I just choose extended because
actually use some of these options here
and normally I leave it as match case
and match whole world only just I mean
it really doesn't matter for most cases
but that's the options that i have set
so now what you want to do with the
directories go to the directory you want
to do the massive fireplace with right
click copy and
pace which is in there too so that ipad
before so now if i doing replacing files
you should go through all the files
there and and just to make sure that
they actually does work if i go to let's
say the our services page right now and
i scroll down see how right now it says
2014 copyright so if this works which
you know it will happen then it will
replace that once I open that file again
so go ahead and click on replacing files
ok and now we basically it's done
already replaced files 26 occurrences
replace great so now i can a if i go
back to that file and open it and I
scroll way down
yep copyright 2014 so so basically
that's how you would do a massive fine
replace a using notepad plus plus which
really powerful and you don't have to
deal with command line using the grab
feature which is a similar to a lot of
the capabilities of this but linux and
its command line so it's a lot more work
sometimes then it needs to be and also
it's a lot more technical anyways so
hopefully you found this video helpful
and you have to make sure you like this
video subscribe to my youtube channel
and go to my site yeah IM me that's a or
until ya shank com change the URL and on
my website I always have really
interesting cool post that ranges
anywhere from business to creative to
just core stuff that I think most people
would be interested in and make sure you
like me on a facebook follow me on
Twitter Instagram Google+ and and
and if you want to subscribe to my
newsletter as well so thank you for
watching and thank you for subscribing

Video Length: 06:18
Uploaded By: Yan S. Huang
Published: 7/25/2014
View Count: 25,568

Related Software Products
Multiple File Search and Replace
Multiple File Search and Replace

Published By:
InternetSoft Corporation

Description:
With the help of this program, you can quickly find and replace text, correct html code and hyperlinks in multiple file, add new links or re-format the design of the entire site. Software extremely useful in editing of multiple html and text files. When you are developing or supporting a large website, containing many pages and complex code, it is often necessary to make changes in several files simultaneously, in order to add new text or links to different pages, alter descriptions, keywords ...

Multiple File Search & Replace
Multiple File Search & Replace

Published By:
Multiple File Search Replace

Description:
When you are developing or supporting a large website, containing many pages and complex code, it is often necessary to make changes in several files simultaneously, in order to add new text or links to different pages, alter descriptions, keywords and other metatags, fix non-functioning links, redesign or optimize pages for search engines. For these purposes we have developed Multiple Search & Replace. Our program differs from, and improves upon other similar programs in a number of key ways. ...


Related Videos
Word Macro to Automatically Find and Replace Multiple Terms in Multiple Word Files
Word Macro to Automatically Find and Replace Multiple Terms in Multiple Word Files

Video Length: 13:08
Uploaded By: Litigation Support Tip of the Night (8/27/2015)
View Count: 21,501

How to find and replace text in multiple Microsoft Word documents/files!
How to find and replace text in multiple Microsoft Word documents/files!

Video Length: 03:43
Uploaded By: HotHotSoftware (10/3/2012)
View Count: 15,674

How to Find and Replace Multiple Records in Multiple Excel File?
How to Find and Replace Multiple Records in Multiple Excel File?

Video Length: 03:06
Uploaded By: Tanishq Malik (9/21/2013)
View Count: 7,398

How to find and replace multiple words in ms word?
How to find and replace multiple words in ms word?

Video Length: 09:23
Uploaded By: Shweta Malik (12/27/2014)
View Count: 6,766

How to search and replace in multiple word documents?
How to search and replace in multiple word documents?

Video Length: 08:04
Uploaded By: Suhani Malik (1/27/2015)
View Count: 6,274

How Can I Search & Replace in Multiple Word Documents at One Go
How Can I Search & Replace in Multiple Word Documents at One Go

Video Length: 03:50
Uploaded By: Pitch St (4/8/2013)
View Count: 6,250

How to Search & Replace Words and Phrases in Multiple Excel Files
How to Search & Replace Words and Phrases in Multiple Excel Files

Video Length: 03:29
Uploaded By: Suhani Malik (4/4/2013)
View Count: 5,207

How to find and replace multiple strings in multiple files
How to find and replace multiple strings in multiple files

Video Length: 03:51
Uploaded By: HotHotSoftware (6/1/2010)
View Count: 4,905

How to String replace text/Find and replace text for multiple files with regular expressions
How to String replace text/Find and replace text for multiple files with regular expressions

Video Length: 04:08
Uploaded By: HotHotSoftware (10/6/2012)
View Count: 4,434

How to find and replace words in multiple MS word files?
How to find and replace words in multiple MS word files?

Video Length: 02:51
Uploaded By: Tanishq Malik (9/17/2013)
View Count: 3,519

Copyright © 2026, Ivertech. All rights reserved.