{"height":"190","url":"https://iww.hateblo.jp/entry/20131206/red","title":" \u6a19\u6e96\u30a8\u30e9\u30fc\u51fa\u529b\u3092\u8d64\u304f\u3059\u308b","description":"\u6a19\u6e96\u30a8\u30e9\u30fc\u51fa\u529b\u3092\u8d64\u304f\u8868\u793a\u3059\u308b\u30b3\u30de\u30f3\u30c9 bash: print stderr in red color - Server Fault \u3053\u3053\u306e color \u3068\u3044\u3046\u30b3\u30de\u30f3\u30c9\u304c\u30b9\u30fc\u30d1\u30fc\u8d85\u4fbf\u5229 \u30b3\u30fc\u30c9 .bashrc\u306b\u3067\u3082\u66f8\u3044\u3068\u304f color() { set -o pipefail; \"$@\" 2>&1>&3|sed $'s,.*,\\e[31m&\\e[m,'>&2; } 3>&1 \u4f7f\u3044\u65b9 \u30b3\u30de\u30f3\u30c9\u306e\u524d\u306b\u3064\u3051\u308b $ color ls unko.txt ls: cannot access unko.txt: No such file or directory \u3053\u3053\u304c\u539f\u7406\u306e\u52c9\u5f37\u306b\u306a\u308b bash wrapper\u2026","author_name":"iww","published":"2013-12-06 00:00:00","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fiww.hateblo.jp%2Fentry%2F20131206%2Fred\" title=\" \u6a19\u6e96\u30a8\u30e9\u30fc\u51fa\u529b\u3092\u8d64\u304f\u3059\u308b - \u63ee\u767a\u6027\u306e\u30e1\u30e2\uff12\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["bash","Linux"],"provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/iww/","width":"100%","provider_url":"https://hatena.blog","blog_url":"https://iww.hateblo.jp/","blog_title":"\u63ee\u767a\u6027\u306e\u30e1\u30e2\uff12","image_url":null,"type":"rich"}