<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>goosyun</author_name>
  <author_url>https://blog.hatena.ne.jp/goosyun/</author_url>
  <blog_title>つれづれ電脳記（日くらしPCに向かひて）</blog_title>
  <blog_url>https://goosyun.hatenablog.jp/</blog_url>
  <categories>
    <anon>プログラミング・マクロ</anon>
  </categories>
  <description>１ 正規表現を使った部分一致検索 ２ シェルスクリプトによってデータ検索 ３ AIによる解決とその解説 ４ まとめ １ 正規表現を使った部分一致検索 テキスト処理のためのプログラミング言語AWKは、正規表現に対応しています。 AWKは、 awk 'パターン{アクション}' ＜入力ファイル＞という形で実行しますが、そのパターンに正規表現が使えるのです。 その正規表現を利用すれば、部分一致検索が容易です。 パターンの箇所に「$3 ~ /（部分文字列）/」という形で記述すると、第３フィールドのデータが部分文字列を含む場合に一致します。 「~」（チルダ）が照合演算子で、左辺と右辺が「一致する」（左辺の…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgoosyun.hatenablog.jp%2Fentry%2F2026%2F01%2F28%2F142749&quot; title=&quot;AWKのパターンに変数を使用（シェルスクリプトの引数として指定した文字列でデータ検索） - つれづれ電脳記（日くらしPCに向かひて）&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-ak.f.st-hatena.com/images/fotolife/g/goosyun/20260128/20260128140812.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-01-28 14:27:49</published>
  <title>AWKのパターンに変数を使用（シェルスクリプトの引数として指定した文字列でデータ検索）</title>
  <type>rich</type>
  <url>https://goosyun.hatenablog.jp/entry/2026/01/28/142749</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
