Bulk Edit Text Files in Notepad++ (Without Opening Them)

This article was written on December 03, 2010 by CyberNet.

find replace text in files.png

arrow Windows Windows only arrow
Notepad++ has been a long time favorite app of mine when it comes to text editors. It seems to have the right mix of features, and if you use it enough you’ll start coming across some gems that can really save time. One of the features I want to focus on here is the “Find in Files” functionality that is extremely easy to overlook.

To get to the Find in Files section all you have to do is open up the find/replace dialog and switch to the respective tab (pictured in the screenshot above). Most people I talk to about this feature say that they’ve never even navigated to that tab because the Find and Replace tabs generally conquer all of their bulk editing needs. It’s true that those tabs have a lot of functionality, but Find in Files definitely deserves the space it occupies.

When switching to the Find in Files tab you may not immediately notice how this is different than the Find tab. The Filters and Directory fields (along with a few of the checkboxes) are the notable differences. This is where you can specify a directory you want Notepad++ to crawl and bulk edit files without having to first open them in Notepad++. Using the filters you can have it restrict results to certain file extensions, and the checkboxes off to the side will control its ability to crawl into hidden folders and sub-folders.

I’d like to present you with a small warning though. Before doing a bulk replace you should perform a Find All so that you can see a list of matching files along with the line numbers that will be modified:

notepad bulk find.png

Why? Once you choose the Replace in Files option you’ll see a brief warning confirming that this is what you want to do, and then it will go on its merry way updating all matching files. No backups are made, and it won’t tell you which files were changed. Personally I think it should also return a list of all the files it modified along with a glance of the text before/after the change, but that’s just me.

Generally I just use this for the finding capabilities, which also has one other nifty aspect I haven’t mentioned yet. You can actually double-click on any line number in the result list to instantly have Notepad++ open that file and take you to that line number. Alternatively you can right-click in the result pane and select the Open All option to have all of the matching files opened in different tabs.

I have some other Notepad++ tips that I’ll be sharing later on… so be on the lookout if you enjoyed this article.

Notepad++ Homepage (Windows only; Freeware)

Copyright © 2011 CyberNetNews.com

Related Posts:


Google promises ‘greater transparency’ for targeted ads, gives users more control over them

Chances are you’ve visited at least one Google site or another today, and chances are you were delivered some ads tailored just for you while you were there. Exactly how those ads got from the advertiser to you hasn’t always been clear, but Google’s now announced a new effort that it promises will provide “greater transparency and choice” regarding the ads you see. The most immediate change is a new “Why this ad?” link that will be displayed in search results and on Gmail — click on it and Google provides a brief explanation of how that particular ad came to appear on your screen (based on your current search terms, your location, etc.). You’ll also soon be able to access a new Ads Preference Manager, which will let you block specific advertisers or opt out of personalized ads entirely. Google says those options will be appearing “over the coming weeks,” but you can get a peek at what’s in store in the video after the break.

Continue reading Google promises ‘greater transparency’ for targeted ads, gives users more control over them

Google promises ‘greater transparency’ for targeted ads, gives users more control over them originally appeared on Engadget on Tue, 01 Nov 2011 15:58:00 EDT. Please see our terms for use of feeds.

Permalink   |  sourceOfficial Google Blog, Inside AdWords  | Email this | Comments

GDrive test page pops up in Google search, inches closer to an actual product

GDrive test page search result

The GDrive leaks and rumors have started up again in earnest, really for the first time since 2007. The service seemed to destined for the dustbin when Docs started accepting any type of file, but in September hints started dropping that Drive may be resurrected. The latest interesting, if not entirely telling development, is a link to a “test page for Platypus (GDrive)” that pops up when you Google “Writely,” the online word processor that eventually became Google Docs. Those with more robust memories may remember that Platypus was the codename attached to Google’s cloud storage solution back when it was originally being dogfooded. Clicking on the link takes you Google Docs, just as any Writely.com URL would, but that does line up nicely with what we’ve heard about Drive being a rebranded Docs — potentially with a file syncing component. Hopefully the Mountain View crew will take the covers off this bad boy soon — we can’t take much more of this mystery and intrigue stuff.

GDrive test page pops up in Google search, inches closer to an actual product originally appeared on Engadget on Mon, 31 Oct 2011 16:05:00 EDT. Please see our terms for use of feeds.

Permalink TechCrunch  |  sourceGoogle  | Email this | Comments

Xbox Companion app for WP7 shown off at Nokia World, leaks Vudu integration (video)

Even if you’re not planning on picking up one of Espoo’s latest handsets, Microsoft is also on the scene at Nokia World 2011 giving live demos of the upcoming Xbox Companion remote app for Windows Phone 7. It allows for simple remote control of video playback on one’s console, plus content browsing / search with Bing and other metadata display, as seen in two demo videos from the show floor embedded after the break. Also seen in both of the demo videos? An orange tile suspiciously labeled Vudu Movies, despite the lack of any official announcement that the (currently PS3 exclusive) Wal-mart owned service is coming to Xbox Live. A third demo shows off gaming integration with Kinectimals that lets animals jump back and forth from console to phone. Now that the Xbox 360 will integrate search and playback from more video services than ever after the fall update, we’ll see if the remote app draws Xbox fans to Microsoft’s phone platform.

[Thanks, @AttilaG]

Continue reading Xbox Companion app for WP7 shown off at Nokia World, leaks Vudu integration (video)

Xbox Companion app for WP7 shown off at Nokia World, leaks Vudu integration (video) originally appeared on Engadget on Fri, 28 Oct 2011 12:13:00 EDT. Please see our terms for use of feeds.

Permalink   |  sourceWindows Phone Blog  | Email this | Comments

Google launches Person Finder app following earthquake in Turkey

In the wake of yesterday’s devastating earthquake in Turkey, Google has launched a specialized Person Finder to help victims find missing loved ones. First developed in response to the 2010 earthquake in Haiti, Google’s Person Finder has since been deployed to several other natural disaster zones, including post-tsunami Japan earlier this year. The idea behind the company’s Turkish initiative remains as straightforward as ever: users can enter information on the person they’re looking for, or add any details they may have on people who aren’t already accounted for. Of course, all submitted records remain available for public search and viewing. If you’ve been affected by the earthquake or have any information on someone who has, you can find Google’s Person Finder at the source link below.

Google launches Person Finder app following earthquake in Turkey originally appeared on Engadget on Mon, 24 Oct 2011 08:16:00 EDT. Please see our terms for use of feeds.

Permalink The Next Web  |  sourceGoogle.org Blog, Turkey 2011 Person Finder  | Email this | Comments

WIREDoo search engine gets running man stamp of approval (video)

MC Hammer already proved that you only need one hit record. But can you get by with just one search engine? Not if you believe his pitch to the Web 2.0 Summit this week, which promoted a “deep search” technology called WIREDoo. The rapper-approved tool emphasizes relationships rather than keywords, which yields very different results to Google’s. Type in 90210, for instance, and instead of pages of links about the TV show, the pre-beta WIREDoo brings up stuff about the neighborhood — schools, homes, the crime rate and other supposedly useful information. You’ll find the full presentation after the break, but don’t expect any nostalgic dance moves — Hammer is serious about this, just like he was about those revolutionary tablets.

Continue reading WIREDoo search engine gets running man stamp of approval (video)

WIREDoo search engine gets running man stamp of approval (video) originally appeared on Engadget on Sun, 23 Oct 2011 23:59:00 EDT. Please see our terms for use of feeds.

Permalink CNET  |  sourceInformation Week  | Email this | Comments

YouTube insult generator lets you search for the perfect retort

There is something about anonymity on the internet that turns ordinary every day people into lumpy faced trolls. People can’t seem to help themselves when it comes to insulting someone else’s work or opinion. It is enough to make one pull the Ethernet cord from the wall sometimes. Trolling is the dark underbelly of the […]

Best Greasemonkey Scripts – Google Sidebar

This article was written on December 30, 2007 by CyberNet.

One thing that I’ve always enjoyed with Google’s test site, SearchMash, was the powerful sidebar that it included. It gives users quick access to videos, images, Wikipedia, blogs, and more. Determined to find a way to get similar features on the Google search page I decided to turn to Greasemonkey.

The script that I came across is called Google Extra, and it does everything that I wanted it to. It utilizes the extra space on the right side of the search results to display:

  • Images – Six small thumbnails are shown, and hovering over a thumbnail will show you a larger version.
  • Videos – Grabs four videos from YouTube, and if you hover over one of the thumbnails it will flip between three thumbnails from that video.
  • Wikipedia – You’ll see a condensed excerpt from Wikipedia.
  • Dictionary – A nice list of definitions for the word you’re searching for.

Google Extra Sidebar 
(Click to Enlarge)

The thing that really makes this script nice, however, is the ability to reorder the four different sections so that they are organized with your most useful ones first. If you don’t use one of the sections very often, such as the videos, just minimize it. Your settings are remembered for every search you perform.

Heads up: Don’t be concerned if you perform a search and don’t see the four different sections pictured above. It’s designed to only display a section if it actually has matching results, so most of the time the Wikipedia and Dictionary results probably won’t show up.

You probably have some speed concerns, which is understandable given that several different sites have to be queried in order to display the extra data. After all, you don’t want to compromise Google’s split-second search results. Don’t worry, the script is well designed so that it will load after your search results. Basically you won’t notice any speed decrease in how long it takes to show the search results, but the overall page will obviously take an extra second or two to load.

Google Extra Script
Note: This script uses Greasemonkey-specific features, and for that reason it won’t work in Opera.

Copyright © 2011 CyberNetNews.com

Related Posts:


Google’s Bradley Horowitz: ‘we’re throwing fewer things against the wall’

And with that, a dream dies. Well, maybe that’s a bit sensational, but we aren’t going to lie — we weeped inside upon hearing Google’s Bradley Horowitz (Vice President of Product Management) contritely state that his company is “doing less of throwing things against the wall.” In fact, he proclaimed that Google+ was morphing into a platform that would absolutely, without question become a pillar across the company in some form or fashion. In other words, it’s too big to fail. He stated that the idea of using the general public as a test bed for products (hello, Buzz!) was fading quickly, and that this “transformation” would be “very healthy” for Google. He did affirm that engineers are still given their token “20 percent time” in order to innovate on whatever they darn well please, but we seriously got the impression that the culture under Larry Page isn’t focusing nearly as intently on that kind of frivolous, outlandish and absolutely marvelous behavior.

Bradley noted that while “20 percent time” isn’t going away, there are changes taking place. There’s a “higher bar on what gets put to market, and more of an editing function than before.” Continuing on, he stated the following: “Instead of making these decisions in the market… we’re doubling-down on one’s that are more important across the company.” If you’re a hardcore, orthodox businessperson, this sounds totally logical. The whole “stop being childish, start being responsible” thing sure sounds appropriate on paper, but c’mon — this is Google! A huge part of the company’s mystique, charm and spontaneous nature came in its “we’ll try anything once” persona, and if that truly is dying in even a small way, we can’t help but have a heavy heart. The further Google strays from its startup roots (and the more it tries to act like every other bureaucratic mega-corp), the less likely we are to get flops like Google TV. But on the same token, the less likely we are to have that one-in-a-million hit (and oddballs like this) that would’ve never proved viable in any “research group.” Here’s one final quote from Bradley when asked to elaborate on this corporate shift:

“We would rather do fewer things well — we’re now on a path to remedy prior sins of omissions. I think it’s a tradeoff [with losing some of the freewheeling autonomy]. I still think there’s a tremendous part of Google culture that’ll never change, but what’s exciting is that the company is rallying around this, and [the employees] see the benefits of alignment. We’ve won the hearts of employees, and there’s tremendous momentum on what we’re doing. My experience is that Larry is a consummate product leader — it’s thrilling, it feels like the company is coordinated in a way that I’ve never seen. I don’t know that it’s just Larry, but I couldn’t be more impressed with him as CEO. I didn’t expect this level of change in company culture when that announcement was made.”

Google’s Bradley Horowitz: ‘we’re throwing fewer things against the wall’ originally appeared on Engadget on Thu, 20 Oct 2011 05:38:00 EDT. Please see our terms for use of feeds.

Permalink   |   | Email this | Comments

Google encrypts search for users, paranoiacs unsure how to respond

When Al Gore first created the internet (hard wink, everybody), we’re pretty sure the plan was for Big Brother to collect your data, not Silicon Valley titans. Now Google, the company that mainly tends the gates to the web’s vast array of information, is stepping up to its “Do No Evil” motto, and making encrypted search the norm — for account users. While Gmail’s long had SSL set as a default login, good ol’ Joe Public’s had to specifically access Mountain View’s dedicated encrypted search page for anonymous surfing privileges. No longer, as Gmail users signed in to Goog’s suite of web services will be automatically redirected to https://www.google.com where their searches and results will be hidden from prying eyes. The protection doesn’t extend out to web advertisements, so those specific clicks will deliver the same metric-relevant info that helps marketers optimize their hyper-targeting. Any of that put you conspiracy theorists at ease? Good, now you can open those curtains again.

Google encrypts search for users, paranoiacs unsure how to respond originally appeared on Engadget on Wed, 19 Oct 2011 13:41:00 EDT. Please see our terms for use of feeds.

Permalink   |  sourceOfficial Google Blog  | Email this | Comments