<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Regex on Shafiq Alibhai</title>
    <link>https://www.shafiq.in/zh/tags/regex/</link>
    <description>Recent content in Regex on Shafiq Alibhai</description>
    <generator>Hugo</generator>
    <language>zh-CN</language>
    <copyright>© 2009-2026 All rights reserved.</copyright>
    <lastBuildDate>Mon, 20 Jun 2011 11:38:01 +0000</lastBuildDate>
    <atom:link href="https://www.shafiq.in/zh/tags/regex/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>[HowTo] Replace ip address using sed</title>
      <link>https://www.shafiq.in/zh/blog/howto-replace-ip-address-using-sed/</link>
      <pubDate>Mon, 20 Jun 2011 11:38:01 +0000</pubDate>
      <guid>https://www.shafiq.in/zh/blog/howto-replace-ip-address-using-sed/</guid>
      <description>&lt;p&gt;Following one-liner will search for a ip address pattern in the specified file and replace it with the one provided :&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;sed &lt;span class=&#34;s1&#34;&gt;&amp;#39;s/[0-9]\{1,3\}.[0-9]\{1,3\}.[0-9]\{1,3\}.[0-9]\{1,3\}/**IPADDRESS-COMES-HERE**/g&amp;#39;&lt;/span&gt; /SourceFilename &amp;gt; /DestinationFilename&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
  </channel>
</rss>
