<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>a666666</author_name>
  <author_url>https://blog.hatena.ne.jp/a666666/</author_url>
  <blog_title>@kyanny's blog</blog_title>
  <blog_url>https://blog.kyanny.me/</blog_url>
  <categories>
    <anon>Perl</anon>
  </categories>
  <description>seq とか jot とか、どっちがどっちか覚えられないし、 &quot;001.txt&quot; &quot;002.txt&quot; みたいに頭にゼロをつけることができるかどうかもよくわからないので Perl でやったほうが楽だ。シェルの for in ループと組み合わせると、「デイリーでロテートしてる apache のログファイルを 2008年1月1日から2008年1月27日ぶんまで削除する」とか「mysql の binlog を今書き込んでるファイルとそれより一つだけ古いファイルを除いて全部 gzip 圧縮する」とかが一発でできる。 $ for i in `perl -e 'printf(&quot;%0.2d\n&quot;, $_) f…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.kyanny.me%2Fentry%2F20080925%2F1222329844&quot; title=&quot;Perl で連番のファイル名を作る - @kyanny&amp;#39;s blog&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>2008-09-25 17:04:04</published>
  <title>Perl で連番のファイル名を作る</title>
  <type>rich</type>
  <url>https://blog.kyanny.me/entry/20080925/1222329844</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
