<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>katsube</author_name>
  <author_url>https://blog.hatena.ne.jp/katsube/</author_url>
  <blog_title>ねこの足跡R</blog_title>
  <blog_url>https://blog.katsubemakito.net/</blog_url>
  <categories>
    <anon>とあるエンジニアの闇歴史帳</anon>
    <anon>Linux</anon>
    <anon>コマンド</anon>
    <anon>ls</anon>
    <anon>find</anon>
  </categories>
  <description>特定のディレクトリ配下を再帰的にたどりファイル一覧を表示などしたい。 階層の深さが決まっていればかんたんに取得できる方法もあるが、階層はまちまちで、今後もダイナミックに変化していく。このような場合にはどうすれば良いだろうか。 方法はいくつかある。 Linuxなどのコマンドを使う オリジナルの関数を用意する (Perlの場合) File::Findモジュールを使用する （Perlの場合） ls -R 表示するだけであれば、お手軽なのは ls のオプションを利用する方法である。Rオプションをつけて実行すると、ディレクトリがあった場合、そのディレクトリ以下のファイルも再帰的に表示してくれる。 以下の…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.katsubemakito.net%2Fdokuwiki%2Flinux%2Ffile_ls_r&quot; title=&quot;ディレクトリを再帰的にたどりファイル一覧を表示する - Linux - ねこの足跡R&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://m.media-amazon.com/images/I/41xfW4tcDxL._SL500_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2006-10-07 00:00:00</published>
  <title>ディレクトリを再帰的にたどりファイル一覧を表示する - Linux</title>
  <type>rich</type>
  <url>https://blog.katsubemakito.net/dokuwiki/linux/file_ls_r</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
