<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>seiunsky</author_name>
  <author_url>https://blog.hatena.ne.jp/seiunsky/</author_url>
  <blog_title>すがブロ</blog_title>
  <blog_url>https://sugamasao.hatenablog.com/</blog_url>
  <categories>
    <anon>Linux</anon>
    <anon>シェル</anon>
  </categories>
  <description>はじめて使いました＞＜ クソでかい（100M級）のファイルから一部分置換したいよ！ でもファイルが多すぎるから vi で開いてもとても重いよ！ って言う状態になったので sed ならストリームで扱えるからサクサク行けるんじゃね？ と思い使ってみた。 結論から書くと ちょう簡単！＞＜ sed s/^d/@@/g hoge.txt こんな感じで sed s/置換対象/置換後文字列/g ファイル名 と書くと置換された結果が標準出力に出力される。 なので、この結果をリダイレクトしてあげれば置換後のファイルを作成することができるのです。 ちなみに、s/置換対象/置換後文字列/g の g は一行の中に複数…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsugamasao.hatenablog.com%2Fentry%2F20080909%2F1220976614&quot; title=&quot;sed を使わなくて許されるのは小学s(ry - すがブロ&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>2008-09-09 01:10:14</published>
  <title>sed を使わなくて許されるのは小学s(ry</title>
  <type>rich</type>
  <url>https://sugamasao.hatenablog.com/entry/20080909/1220976614</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
