<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>koideforest</author_name>
  <author_url>https://blog.hatena.ne.jp/koideforest/</author_url>
  <blog_title>nano_exit</blog_title>
  <blog_url>https://koideforest.hatenadiary.com/</blog_url>
  <categories>
    <anon>プログラミング</anon>
  </categories>
  <description>参考サイト sed で指定した範囲の行を置換する - まくまくsed/awkノート sed | テキストの置換処理を得意とするスクリプト言語 sedでこういう時はどう書く? #Linux - Qiita text.txt内の1~10行目を無視したい。 sed -e '1,10d' text.txt 無視した後の残された行を、頭から1行目と数え直して、100行目から1000行目の間にある全てのhogeをHOGEに置換したい。 sed -e '1,10d' -e '100,1000 s/hoge/HOGE/g' text.txt 上記の内容を、同じtext.txtに反映させたい。 sed -i -…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkoideforest.hatenadiary.com%2Fentry%2F2024%2F01%2F17%2F204127&quot; title=&quot;sedで、不要な行を消去しながら、範囲を指定して置換し、結果を上書きする - nano_exit&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>https://cdn.user.blog.st-hatena.com/default_entry_og_image/89449353/1514224948935857</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-01-17 20:41:27</published>
  <title>sedで、不要な行を消去しながら、範囲を指定して置換し、結果を上書きする</title>
  <type>rich</type>
  <url>https://koideforest.hatenadiary.com/entry/2024/01/17/204127</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
