<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nakahashi_h</author_name>
  <author_url>https://blog.hatena.ne.jp/nakahashi_h/</author_url>
  <blog_title>websandbag ブログ</blog_title>
  <blog_url>https://blog.websandbag.com/</blog_url>
  <categories>
    <anon>macOS</anon>
    <anon>linux</anon>
    <anon>bash</anon>
  </categories>
  <description>最近、複数の静的HTMLファイルにスクリプトを追加する機会がありました。 静的ファイルが少なければ、一個一個ファイルを開いて、指定の場所にタグをコピーする方法で作成する方法で事足ります。 一見単純作業に思えますが、ファイル数が多い場合はかなり時間と労力を取られます。 さて、 今回はシェルスクリプトでタグの挿入をするスクリプトを作り、複数のファイルに対して一気に置換を行う方法について触れます。 目次 目次 今回のファイル構成について ファイルの中身について 今回実装する指針 置換イメージ シェルスクリプト 注意事項 ヒアドキュメントを書く場合は、インデントを含められない 改行するときはバックスラ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.websandbag.com%2Fentry%2F2021%2F04%2F01%2F014106&quot; title=&quot;【Mac(Linux)】複数のファイルの先頭に文字列を追加する - websandbag ブログ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-04-01 01:41:06</published>
  <title>【Mac(Linux)】複数のファイルの先頭に文字列を追加する</title>
  <type>rich</type>
  <url>https://blog.websandbag.com/entry/2021/04/01/014106</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
