<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>maru_cc</author_name>
  <author_url>https://blog.hatena.ne.jp/maru_cc/</author_url>
  <blog_title>maru.cc@はてな</blog_title>
  <blog_url>https://marucc.hatenablog.com/</blog_url>
  <categories>
    <anon>Linux</anon>
  </categories>
  <description>「色つきで結果を表示するrsyncスクリプト」d:id:maru_cc:20080219:1203431683 で、phpで書いた色つきスクリプトを作成しましたが、それをシェルバッチにしてみました。 #!/bin/sh rsync &quot;$@&quot; | sed &quot;s/deleting .*/`echo -e '\e[1;31m&amp;\e[0m'`/&quot; | sed &quot;s/^[^ ]*$/`echo -e '\e[1;32m&amp;\e[0m'`/&quot; このシェルスクリプトに通常のrsyncと同様のパラメータを渡して実行すると、結果を色つきで表示してくれます。 「シェルバッチで複数行の結果を変数に入れる方法がわからな…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmarucc.hatenablog.com%2Fentry%2F20080221%2F1203599855&quot; title=&quot;rsync結果を色つきで表示するシェルバッチ - maru.cc@はてな&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-02-21 22:17:35</published>
  <title>rsync結果を色つきで表示するシェルバッチ</title>
  <type>rich</type>
  <url>https://marucc.hatenablog.com/entry/20080221/1203599855</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
