<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shokai</author_name>
  <author_url>https://blog.hatena.ne.jp/shokai/</author_url>
  <blog_title>橋本詳解</blog_title>
  <blog_url>https://shokai.hatenadiary.org/</blog_url>
  <categories>
    <anon>OneLiner</anon>
    <anon>Ruby</anon>
  </categories>
  <description>俺が使う言語に全部マッチさせると場合 ruby -e 'pattern=/.*(\.as|\.js|\..+ml|\.cpp|\.c|\.cs|Makefile.*|\.rb|\.sh)$/; sum=0; for i in 0..10 do Dir.glob(&quot;*/&quot;*i+&quot;*&quot;).delete_if{|n|!(n =~ pattern) or File::ftype(n) != &quot;file&quot;}.each{|f| n=open(f).readlines.size; puts &quot;#{n}\t#{f}&quot;;sum+=n} end; puts &quot;total #{sum}&quot;'で、今までのソースコードが…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshokai.hatenadiary.org%2Fentry%2F20091112%2F1258050783&quot; title=&quot;ディレクトリ下のファイルの行数を数えるワンライナー - 橋本詳解&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>2009-11-12 03:33:03</published>
  <title>ディレクトリ下のファイルの行数を数えるワンライナー</title>
  <type>rich</type>
  <url>https://shokai.hatenadiary.org/entry/20091112/1258050783</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
