<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>swfz</author_name>
  <author_url>https://blog.hatena.ne.jp/swfz/</author_url>
  <blog_title>notebook</blog_title>
  <blog_url>https://swfz.hatenablog.com/</blog_url>
  <categories>
    <anon>command</anon>
    <anon>shell script</anon>
  </categories>
  <description>よくあるやつだがたまにやろうとするとぱっと出てこなかったので残しておく たとえば lintの結果のテキストファイルをさっと集計したいとかそういった場合 最初の3行は警告とは関係ない説明とかコマンド詳細などが表示されていて 最後の3行はSummaryが表示されているというような場合 中身を抜き出してさっと集計するためには、まず最初と最後の固定情報を削っておきたい サンプル 理解しやすくするために、行頭に行数を載せている sample.txt $ cat sample.txt 1 aaa 2 bbb 3 ccc 4 ddd 5 eee 6 fff 7 ggg 8 hhh 9 iii 10 jjj …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fswfz.hatenablog.com%2Fentry%2F2022%2F11%2F13%2F181502&quot; title=&quot;最初と最後の数行を指定して除いた中身を表示する - notebook&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-ak.f.st-hatena.com/images/fotolife/s/swfz/20221113/20221113181432.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-11-13 18:15:02</published>
  <title>最初と最後の数行を指定して除いた中身を表示する</title>
  <type>rich</type>
  <url>https://swfz.hatenablog.com/entry/2022/11/13/181502</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
