<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yajamon</author_name>
  <author_url>https://blog.hatena.ne.jp/yajamon/</author_url>
  <blog_title>ごらくらいふ</blog_title>
  <blog_url>https://yajamon.hatenablog.com/</blog_url>
  <categories>
    <anon>作業メモ</anon>
    <anon>tips</anon>
    <anon>bash</anon>
    <anon>コマンドライン</anon>
  </categories>
  <description>tail 行番号でggって nl が出てくる理由がわかった。 使うコマンド tail nl wc 方法 tail 結果に nl で行番号を付与する。 # 元ファイルの行数を確認する wc -l path/to/file # 200とか出てくる # tailする tail -20 path/to/file | nl -v 181 # 全体行-tail行+1 から開始する cat -n してからtailするより健全に行番号を付加できるようになった。 常時書き込まれる可能性のあるやつはずれる可能性ありありなのは注意。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyajamon.hatenablog.com%2Fentry%2F2015%2F12%2F02%2F204850&quot; title=&quot;tail で行番号を表示したい。それも元ファイル基準の。 - ごらくらいふ&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>2015-12-02 20:48:50</published>
  <title>tail で行番号を表示したい。それも元ファイル基準の。</title>
  <type>rich</type>
  <url>https://yajamon.hatenablog.com/entry/2015/12/02/204850</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
