{"id":205,"date":"2007-05-20T17:02:55","date_gmt":"2007-05-20T22:02:55","guid":{"rendered":"http:\/\/www.trustyetc.com\/trustyblog\/2007\/05\/20\/efficiency-tip-28-search-and-replace\/"},"modified":"2015-05-14T09:14:24","modified_gmt":"2015-05-14T14:14:24","slug":"efficiency-tip-28-search-and-replace","status":"publish","type":"post","link":"https:\/\/www.trustyetc.com\/trustyblog\/2007\/05\/20\/efficiency-tip-28-search-and-replace\/","title":{"rendered":"Efficiency Tip #28 &#8211; Search and Replace"},"content":{"rendered":"<p>Most text editors have a function that permits searching.  We talked about the F3 shortcut before.  In addition to searching, there is usually a replace function (Ctrl-H).  Using this tool you can find a specific word or phrase and replace it with a new word or phrase.<\/p>\n<p><img decoding=\"async\" alt=\"Search and Replace\" src=\"http:\/\/www.trustyetc.com\/trustyblog\/wp-content\/uploads\/2007\/05\/searchandreplace.png\" \/><\/p>\n<p>There may even be a system-wide setting that can do the same thing for many files.  Recently, the UF updated a server that houses a few hundred of my web pages.  The old server was actually taken out of service and all the files were moved to a new server.  Many of my pages had absolute references to the old server.  By this, I mean the links had the server&#8217;s name included as part of the code.  This was necessary because the pages contained dynamic data stored in databases.  When the old server went away, all the pages stopped working.<\/p>\n<p>Using a global search and replace, all the old references were replaced with the new correct server name in a few minutes.<\/p>\n<p>TSPY=24.00<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Most text editors have a function that permits searching. We talked about the F3 shortcut before. In addition to searching, there is usually a replace function (Ctrl-H). Using this tool you can find a specific word or phrase and replace &hellip; <a href=\"https:\/\/www.trustyetc.com\/trustyblog\/2007\/05\/20\/efficiency-tip-28-search-and-replace\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,4],"tags":[336,338],"class_list":["post-205","post","type-post","status-publish","format-standard","hentry","category-edtech","category-efficiency","tag-edtech","tag-efficiency"],"_links":{"self":[{"href":"https:\/\/www.trustyetc.com\/trustyblog\/wp-json\/wp\/v2\/posts\/205","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.trustyetc.com\/trustyblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trustyetc.com\/trustyblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trustyetc.com\/trustyblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trustyetc.com\/trustyblog\/wp-json\/wp\/v2\/comments?post=205"}],"version-history":[{"count":1,"href":"https:\/\/www.trustyetc.com\/trustyblog\/wp-json\/wp\/v2\/posts\/205\/revisions"}],"predecessor-version":[{"id":1489,"href":"https:\/\/www.trustyetc.com\/trustyblog\/wp-json\/wp\/v2\/posts\/205\/revisions\/1489"}],"wp:attachment":[{"href":"https:\/\/www.trustyetc.com\/trustyblog\/wp-json\/wp\/v2\/media?parent=205"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trustyetc.com\/trustyblog\/wp-json\/wp\/v2\/categories?post=205"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trustyetc.com\/trustyblog\/wp-json\/wp\/v2\/tags?post=205"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}