<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tech-hint</author_name>
  <author_url>https://blog.hatena.ne.jp/tech-hint/</author_url>
  <blog_title>tech-hint</blog_title>
  <blog_url>https://tech-hint.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>lsコマンドでディレクトリやファイルをツリー形式で表示することはできますが、標準ではサポートされていません。代わりに、別のコマンド、例えば tree コマンドを使用することができます。または、lsコマンドと組み合わせたオプションを使用することもできます。 ls -R | grep &quot;:$&quot; | sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/ /' -e 's/-/|/' この例では、ls -Rコマンドを使用して再帰的にすべてのサブディレクトリをリストし、grepコマンドを使用して各行に&quot;:$&quot;が含まれているものだけを選択します。次に、sedコ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech-hint.hatenablog.com%2Fentry%2F2023%2F02%2F11%2F105622&quot; title=&quot;lsコマンドでディレクトリやファイルをツリー形式で表示するには - tech-hint&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>2023-02-11 10:56:22</published>
  <title>lsコマンドでディレクトリやファイルをツリー形式で表示するには</title>
  <type>rich</type>
  <url>https://tech-hint.hatenablog.com/entry/2023/02/11/105622</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
