<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>myokoym</author_name>
  <author_url>https://blog.hatena.ne.jp/myokoym/</author_url>
  <blog_title>myhd</blog_title>
  <blog_url>https://myokoym.hatenadiary.org/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>■変更点 読み込めるファイルを.txtと.csvに限定 文字列判定に比較演算子（=~）を使用 file_path = ARGV[0] search_str = ARGV[1] if /^(txt|csv)$/i !~ file_path.split(&quot;.&quot;).[](-1) puts &quot;扱えないファイルです。&quot; exit endtemp_lines = [] File.open(file_path) { |f| f.each do |line| temp_lines end }temp_lines.sort!File.open(&quot;result_&quot; + file_path, &quot;w&quot;) { |f| …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmyokoym.hatenadiary.org%2Fentry%2F20100314%2F1268553796&quot; title=&quot;テキストファイルの内容をソートするプログラム　その４　「パターンマッチと負の添字」 - myhd&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>2010-03-14 17:03:16</published>
  <title>テキストファイルの内容をソートするプログラム　その４　「パターンマッチと負の添字」</title>
  <type>rich</type>
  <url>https://myokoym.hatenadiary.org/entry/20100314/1268553796</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
