<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>a666666</author_name>
  <author_url>https://blog.hatena.ne.jp/a666666/</author_url>
  <blog_title>@kyanny's blog</blog_title>
  <blog_url>https://blog.kyanny.me/</blog_url>
  <categories>
  </categories>
  <description>テキスト（ファイル）から絵文字を含む行だけ検索したい、みたいなのを雑にやるには POSIX 文字クラス [:ascii:] が使える。 GNU grep が必要。macOS 標準の grep ではだめなので brew install coreutils したうえで ggrep を使うこと。 grep -aP '[^[:ascii:]]' あるいは ripgrep を使う。 rg -aNP '[^[:ascii:]]' 文字クラスは [] の間に書く。[^x] で x 以外にマッチ、という記法。[:ascii:] POSIX 文字クラスは ASCII の範囲の文字にマッチする。これを組み合わせて…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.kyanny.me%2Fentry%2F2022%2F03%2F29%2F163848&quot; title=&quot;GNU grep: ASCII 以外の文字が含まれる行だけ検索する - @kyanny&amp;#39;s blog&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>2022-03-29 16:38:48</published>
  <title>GNU grep: ASCII 以外の文字が含まれる行だけ検索する</title>
  <type>rich</type>
  <url>https://blog.kyanny.me/entry/2022/03/29/163848</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
