{"id":898,"date":"2009-08-06T04:00:00","date_gmt":"2009-08-05T19:00:00","guid":{"rendered":"https:\/\/ecoop.net\/memo\/2009-08-06-4.html"},"modified":"2026-08-10T14:45:49","modified_gmt":"2026-08-10T05:45:49","slug":"2009-08-06-4","status":"publish","type":"post","link":"https:\/\/www.ecoop.net\/memo\/archives\/2009-08-06-4.html","title":{"rendered":"\u30b7\u30a7\u30eb\u306e\u30b3\u30de\u30f3\u30c9\u5b9f\u884c\u7d50\u679c\u3092\u30d1\u30a4\u30d7\u306e\u3088\u3046\u306b\u30b3\u30de\u30f3\u30c9\u5f15\u6570\u3068\u3057\u3066\u53d7\u3051\u53d6\u308b"},"content":{"rendered":"<p>\n\u30b3\u30de\u30f3\u30c9\u5b9f\u884c\u7d50\u679c\u306e\u5dee\u5206\u3092\u53d6\u308a\u305f\u3044\u5834\u5408\u306a\u3069\u3001<br \/>\n\u8907\u6570\u306e\u30d1\u30a4\u30d7\u51e6\u7406\u3092\u3057\u305f\u3044\u5834\u5408\u3001bash \u306e < ( ... ) \u69cb\u6587\u3092\u4f7f\u3046\u3068\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<blockquote><p>command < ( piped-command1 ) <(piped-command2 ) ...\n<\/p><\/blockquote>\n<p>\u4f8b:\n<\/p>\n<blockquote><p>$ cat < (echo hello) <(echo world)<br \/>\nhello<br \/>\nworld\n<\/p><\/blockquote>\n<p>\u30b4\u30df(\u4e00\u6642\u30d5\u30a1\u30a4\u30eb)\u3082\u4f5c\u6210\u3055\u308c\u306a\u3044\u306e\u3067\u30a8\u30b3\u30ed\u30b8\u30fc\u3067\u3059\u3002<br \/>\n&nbsp;<br \/>\n\u4f8b2: SJIS \u3067\u66f8\u304b\u308c\u305f\u30c6\u30ad\u30b9\u30c8\u3068 UTF-8 \u3067\u66f8\u304b\u308c\u305f\u30c6\u30ad\u30b9\u30c8\u3092 nkf \u3067 SJIS \u306b\u7d71\u4e00\u3057\u3066\u6bd4\u8f03\u3059\u308b\u3002\n<\/p>\n<blockquote><p>$ diff $(nkf -Se index.shift_jis.html ) $(nkf -We index.utf8.html )\n<\/p><\/blockquote>\n<p>&nbsp;<br \/>\nPHP \u3067\u5225\u3005\u306b\u51e6\u7406\u3057\u305f\u753b\u50cf\u3092 imagemagick \u3067\u7d50\u5408\u3059\u308b\u3001\u3068\u3044\u3046\u6642\u3084\u8907\u6570\u30b5\u30fc\u30d0\u304b\u3089 httpd \u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u3092\u62fe\u3063\u3066\u304d\u3066\u30de\u30fc\u30b8\u3059\u308b\u3001\u306a\u3093\u3066\u3044\u3046\u3068\u304d\u306b\u3082\u91cd\u5b9d\u3057\u307e\u3059\u3002<br \/>\n&nbsp;<br \/>\n\u5185\u90e8\u7684\u306b\u306f\u30d5\u30a1\u30a4\u30eb\u30c7\u30b9\u30af\u30ea\u30d7\u30bf\u3084 FIFO \u3092\u4e00\u6642\u4f5c\u6210\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\nopen(2) \u3067\u958b\u304f\u3053\u3068\u304c\u3067\u304d\u308b\u306e\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u5f15\u6570\u306b\u3068\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u306a\u3089\u5927\u62b5\u306e\u3082\u306e\u3067\u4f7f\u3048\u307e\u3059\u306d\u3002<br \/>\n&nbsp;<br \/>\n\u691c\u8a3c:<br \/>\nLinux 2.6 \u306e\u5834\u5408\u306e\u5b9f\u4f53\u306f\u30d5\u30a1\u30a4\u30eb\u30c7\u30b9\u30af\u30ea\u30d7\u30bf\n<\/p>\n<blockquote><p>$ ls -ld < ( echo foo )<br \/>\nlr-x&#8212;&#8212; 1 user user 64  8\u6708  6 18:42 \/dev\/fd\/63 -> pipe:[61042111]\n<\/p><\/blockquote>\n<p>FreeBSD 6 \u306e\u5834\u5408\u306f fifo (\u53c2\u8003 mkfifo)\n<\/p>\n<blockquote><p>$ ls -ld < (echo foo)<br \/>\nprw&#8212;&#8212;-  1 user  wheel  0  8  6 19:04 \/var\/tmp\/\/sh-np-2875720493\n<\/p><\/blockquote>\n<p>&nbsp;<br \/>\n\u53c2\u8003:<br \/>\n&#8211; <a href=\"http:\/\/www.unix.com\/shell-programming-scripting\/112767-can-process-substitution-used-input-file-another-program.html?hl=en\">Can process substitution be used as an input file to another program?<\/a>(The UNIX and Linux Forums)<br \/>\nzsh \u3067\u306f =( &#8230; ) \u3068\u306e\u3053\u3068\u3002\n<\/p>\n<blockquote><p>% cat =(echo hello)\n<\/p><\/blockquote>\n<p>\u307f\u305f\u3044\u306a\u304b\u3093\u3058\u3067\u3002<br \/>\n&#8211; <a href=\"http:\/\/matsubaray.web.fc2.com\/cl\/cat_linux-2.html\">\u4e00\u6642\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u3089\u305a\u306b\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u51fa\u529b\u3092 diff<\/a><br \/>\ndiff \u306e\u5229\u7528\u4f8b\u3002<br \/>\n&#8211; Manpage of BASH<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30b3\u30de\u30f3\u30c9\u5b9f\u884c\u7d50\u679c\u306e\u5dee\u5206\u3092\u53d6\u308a\u305f\u3044\u5834\u5408\u306a\u3069\u3001 \u8907\u6570\u306e\u30d1\u30a4\u30d7\u51e6\u7406\u3092\u3057\u305f\u3044\u5834\u5408\u3001bash \u306e < ( ... ) \u69cb\u6587\u3092\u4f7f\u3046\u3068\u4fbf\u5229\u3067\u3059\u3002 command < ( piped-command1 )\n<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[135],"tags":[20],"class_list":["post-898","post","type-post","status-publish","format-standard","hentry","category-server","tag-linux"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts\/898","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/comments?post=898"}],"version-history":[{"count":3,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts\/898\/revisions"}],"predecessor-version":[{"id":1792,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts\/898\/revisions\/1792"}],"wp:attachment":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/media?parent=898"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/categories?post=898"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/tags?post=898"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}