/    Sign up×
Community /Pin to ProfileBookmark

Mass Updating Pages

Hello,

Our company is currently going through a re-branding period and we are renaming the company from “Hyphen-Name” to “Hyphenname”.

The problem is we have hundreds of pages, and thousands of locations where we say “Hyphen-Name”. I’m looking for ideas on how best to change all instances to “Hyphenname”. I ran the good old grep command and got a list of all locations, but this includes cases like this:

[CODE]<a href=”Hyphen-Name.pdf”>Hyphen-Name</a>[/CODE]

In this case, we’d only want to update the text between the anchor tag and not the PDF name.

I know this is no easy task, but I just wanted to throw it out there to see if anyone has any good recommendations or tools to make life simpler.

Thanks.

to post a comment
Full-stack Developer

1 Comments(s)

Copy linkTweet thisAlerts:
@Declan1991Nov 10.2010 — I'd use sed on the command-line, but I'm not exactly sure what regular expression would suit you. Probably something as simple as /Hyphen-name[^.]/. grep will show you anyway whether that will replace too many matches.
×

Success!

Help @cbVision spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...