<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shigemk2</author_name>
  <author_url>https://blog.hatena.ne.jp/shigemk2/</author_url>
  <blog_title>by shigemk2</blog_title>
  <blog_url>https://www.shigemk2.com/</blog_url>
  <categories>
    <anon>Linux</anon>
  </categories>
  <description>grepで該当する行の前後も一緒に表示するには検索結果の前の行を表示させたいときは-Aオプションを、 検索結果の次の行を表示させたいときは-Bオプションをつける。で、-nオプションが行数を表示させるオプションなので、 git log --stat の結果を、行数表示+前後3行表示でgrepさせたいときは、以下のように書く。 $ git log --stat | grep -n -A 3 -B 3 'div.hoge'</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.shigemk2.com%2Fentry%2F20130323%2F1364029932&quot; title=&quot;grep で該当する行の前後も表示さす - by shigemk2&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>2013-03-23 18:12:12</published>
  <title>grep で該当する行の前後も表示さす</title>
  <type>rich</type>
  <url>https://www.shigemk2.com/entry/20130323/1364029932</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
