<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Clomie</author_name>
  <author_url>https://blog.hatena.ne.jp/Clomie/</author_url>
  <blog_title>くろめも</blog_title>
  <blog_url>https://clomie.hatenablog.com/</blog_url>
  <categories>
    <anon>Soralis</anon>
    <anon>tcsh</anon>
    <anon>tech</anon>
  </categories>
  <description>職場のサーバがSunOSなんだけどカラー化できるlsが入ってないので困った。 というわけで、&quot;-F&quot; オプションでファイル名のあとに付加される記号から、ディレクトリ／実行ファイル／シンボリックリンク／それ以外が判別できるのでそれをperl -peで置換して無理やり色を付けることにした。 ls -F | perl -pe &quot;s/(\S+)\/( |\Z)/^[[01;34m\1^[[0m\/\2/g ; s/(\S+)\*( |\Z)/^[[01;32m\1^[[0m\*\2/g ; s/(\S+)( \-&gt; |@)/^[[01;36m\1\2^[[0m/g&quot; &quot;^[&quot;の部分はCtrl+V→Es…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fclomie.hatenablog.com%2Fentry%2F2012%2F07%2F07%2F210107&quot; title=&quot;gnulsもcolorlsもなく「ls --color」「ls -G」「set color」が使えない環境でlsを(無理やり)カラー化する - くろめも&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>2012-07-07 21:01:07</published>
  <title>gnulsもcolorlsもなく「ls --color」「ls -G」「set color」が使えない環境でlsを(無理やり)カラー化する</title>
  <type>rich</type>
  <url>https://clomie.hatenablog.com/entry/2012/07/07/210107</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
