[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 272
  • Last Modified:

replacing some extension in all files

I have a code which is migrated to ColdFusion 10, now ColdFusion 10 does not like .Cfm file and it will not load the Page, i have already filed the BUG related to this, but now i have to search whole my website for the .Cfm extension and replace wit .cfm extension, The website has around 100,000 files. it is will cumbersome to look into each file and then do the replacement.

is there neat and clean way of recursing search of the this thing and replace with my .cfm, i know normal search will do.
btw i want to create a page to list down all effecting files and show the changes on the same pages. in CF how to do this

Thanks
0
Gurpreet Singh Randhawa
Asked:
Gurpreet Singh Randhawa
  • 2
1 Solution
 
SidFishesCommented:
global search & replace in eclipse does it nicely. there are probably other advanced text editors out there that would do it as well.

btw - CF won't care about case but the OS does - you're on a *nix server is assume.?

btw = you are talking about changing links within cfm files

ie:
<a href="somelink.Cfm"> to <a href="somelink.cfm">

or are you meaning extensions in the OS

ie:

C:\temp\somelink.Cfm > C:\temp\somelink.cfm

or both?

if you need to do the OS change you could do it cfdirectory or using *nix OS tools http://www.cyberciti.biz/tips/renaming-multiple-files-at-a-shell-prompt.html
0
 
Gurpreet Singh RandhawaWeb DeveloperAuthor Commented:
hi sid,

i am on windows

cf10 i do not know but does not like .Cfm but it likes.cfm extention, yes i am looking for a script to change the extensions not the filenames
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now