<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>2017/11/19 on Yano&#39;s digital garage</title>
    <link>https://www.bravotouring.com/~yano/archives/2017/11/19/</link>
    <description>Recent content in 2017/11/19 on Yano&#39;s digital garage</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Sun, 19 Nov 2017 15:37:56 +0900</lastBuildDate>
    <atom:link href="https://www.bravotouring.com/~yano/archives/2017/11/19/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>sedのTips</title>
      <link>https://www.bravotouring.com/~yano/diary/it/20171119_tips.htm</link>
      <pubDate>Sun, 19 Nov 2017 15:37:56 +0900</pubDate>
      <guid>https://www.bravotouring.com/~yano/diary/it/20171119_tips.htm</guid>
      <description>&lt;p&gt;&lt;span class=&#34;Software&#34;&gt;find&lt;/span&gt;と&lt;span class=&#34;Software&#34;&gt;sed&lt;/span&gt;を組み合わせたテキストファイルの置換Tips。&lt;/p&gt;&#xA;&lt;p&gt;&#xA;&lt;blockquote class=&#34;Log&#34;&gt;&#xA;for f in `fgrep -Rl &#34;http://www.amazon.co.jp/&#34; entries/diary/*`;&lt;br/&gt;&#xA;do&lt;br/&gt;&#xA;  sed -i -e &#39;s#http://www.amazon#https://www.amazon#g&#39; $f;&lt;br/&gt;&#xA;done&#xA;&lt;/blockquote&gt;&#xA;&lt;a href=&#34;https://www.bravotouring.com/~yano/diary/it/20170422_unko.htm&#34;&gt;昨年常時SSL化&lt;/a&gt;を行ったが、相変わらずChromeから「承認されていないソースからのスクリプトを読み込もうとしています」と叱られていたので、Amazonのスクリプトもhttpsで参照するように対処。&lt;/p&gt;&#xA;&lt;p&gt;一度、一時ファイルに書き出してから元のファイル名で上書きする必要があると思って悩んでいたのだが、sedのinplaceオプションで済むことがわかって、ラッキー。&lt;/p&gt;&#xA;&lt;p class=&#34;Reference&#34;&gt;【参照】&#xA;&#x9;&lt;br/&gt;●Qiita &lt;a href=&#34;https://qiita.com/&#34;&gt;https://qiita.com/&lt;/a&gt;&#xA;&lt;br/&gt;┗&lt;a href=&#34;https://qiita.com/b4b4r07/items/d26e84554874dd156b82&#34;&gt;sed コマンドの用法&lt;/a&gt;&#xA;&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
