<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>coffee_kabu</author_name>
  <author_url>https://blog.hatena.ne.jp/coffee_kabu/</author_url>
  <blog_title>Bus errorとSegmentation faultに困ったら見るブログ</blog_title>
  <blog_url>https://coffee-guhaw.hateblo.jp/</blog_url>
  <categories>
    <anon>シェルコマンド/シェルスクリプト</anon>
  </categories>
  <description>あるデータ(data.txt)がある、中身は1 hoge 2 hogeeee 3 foo 4 barみたいな ここでcat data.txt | grep &quot;hoge&quot;とすると、hoge以外にhogehogeも引っかかってしまう・・・ 解決方法1 grepでやる場合は、cat hoge.txt | grep 'hoge$'とすると、行末にあるhogeだけを取り出すことができる^ : 行の先頭を示す $ : 行の最後を示す他にもawkとかでも、完全に一致したときしか表示されないのでこれでOKawk '$2==&quot;hoge&quot;{print }' hoge.txt ランキング参加中です ↓クリックしてい…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcoffee-guhaw.hateblo.jp%2Fentry%2F2025%2F04%2F18%2F120000&quot; title=&quot;【シェル】ファイルの中にあるhogeとhogehogeを区別する方法 - Bus errorとSegmentation faultに困ったら見るブログ&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>2025-04-18 12:00:00</published>
  <title>【シェル】ファイルの中にあるhogeとhogehogeを区別する方法</title>
  <type>rich</type>
  <url>https://coffee-guhaw.hateblo.jp/entry/2025/04/18/120000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
