{"id":862,"date":"2016-06-01T18:32:50","date_gmt":"2016-06-01T16:32:50","guid":{"rendered":"http:\/\/webpiraten.de\/?p=862"},"modified":"2016-06-01T18:32:50","modified_gmt":"2016-06-01T16:32:50","slug":"search-replace-with-sed-without-escaping-slashes","status":"publish","type":"post","link":"https:\/\/webpiraten.de\/index.php\/mysql\/search-replace-with-sed-without-escaping-slashes\/","title":{"rendered":"Search \/ Replace with SED without escaping slashes"},"content":{"rendered":"<p>As you might know, you can use any delimiter to use the search\/replace feature of <strong>sed<\/strong> to avoid extreme escaping of slashes.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n~\/ sed -r -e 's@http:\/\/google.com\/@http:\/\/example.com\/@g' &lt; input.file &gt; output.file\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>As you might know, you can use any delimiter to use the search\/replace feature of sed to avoid extreme escaping of slashes. ~\/ sed -r -e &#8217;s@http:\/\/google.com\/@http:\/\/example.com\/@g&#8216; &lt; input.file &gt; output.file<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[121,77,75,11,54,76],"tags":[144,196,631,231,632,644,169,272,630,269,645],"class_list":["post-862","post","type-post","status-publish","format-standard","hentry","category-debugging","category-deployment","category-linux","category-mysql","category-server","category-shell","tag-bash","tag-console","tag-delimiter","tag-file","tag-input","tag-linux","tag-output","tag-replace","tag-search","tag-sed","tag-shell"],"_links":{"self":[{"href":"https:\/\/webpiraten.de\/index.php\/wp-json\/wp\/v2\/posts\/862","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webpiraten.de\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webpiraten.de\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webpiraten.de\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/webpiraten.de\/index.php\/wp-json\/wp\/v2\/comments?post=862"}],"version-history":[{"count":1,"href":"https:\/\/webpiraten.de\/index.php\/wp-json\/wp\/v2\/posts\/862\/revisions"}],"predecessor-version":[{"id":863,"href":"https:\/\/webpiraten.de\/index.php\/wp-json\/wp\/v2\/posts\/862\/revisions\/863"}],"wp:attachment":[{"href":"https:\/\/webpiraten.de\/index.php\/wp-json\/wp\/v2\/media?parent=862"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webpiraten.de\/index.php\/wp-json\/wp\/v2\/categories?post=862"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webpiraten.de\/index.php\/wp-json\/wp\/v2\/tags?post=862"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}