<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>a1026302</author_name>
  <author_url>https://blog.hatena.ne.jp/a1026302/</author_url>
  <blog_title>ものづくりのブログ</blog_title>
  <blog_url>https://a1026302.hatenablog.com/</blog_url>
  <categories>
    <anon>コマンド</anon>
    <anon>コマンド-grep</anon>
  </categories>
  <description>grep コマンドを使っていたら、中身はテキストファイル なのに &quot;binary file matches&quot; というメッセージが出てきて処理できなかったので、その時の回避方法をここにメモします。 エラー 回避方法 オプション 「-a」 「–text」 「–binary-files=text」 エラー 実行したコマンドは以下のものです。 $ grep &quot;HOGE&quot; sample.txt Binary file (standard input) matches 原因は grep するファイルにバイナリと思われるデータが含まれていて、それがテキストファイルではなく、バイナリファイルとして処理されてエ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fa1026302.hatenablog.com%2Fentry%2F2023%2F10%2F10%2F100650&quot; title=&quot;【コマンド】grep: (標準入力): binary file matches とでた時の対処 - ものづくりのブログ&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/157314735/1599576939808917</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-10-10 10:06:50</published>
  <title>【コマンド】grep: (標準入力): binary file matches とでた時の対処</title>
  <type>rich</type>
  <url>https://a1026302.hatenablog.com/entry/2023/10/10/100650</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
