{"id":1377,"date":"2008-08-16T21:22:00","date_gmt":"2008-08-16T12:22:00","guid":{"rendered":"https:\/\/hdmr.org\/d\/?e=94"},"modified":"2008-08-16T21:22:00","modified_gmt":"2008-08-16T12:22:00","slug":"blogn-94","status":"publish","type":"post","link":"https:\/\/hdmr.org\/d\/?e=94","title":{"rendered":"at 1200\u300112\u6642\u3074\u3063\u305f\u308a\u306b\u30b3\u30de\u30f3\u30c9\u5b9f\u884c\u3060!"},"content":{"rendered":"<p>Perl\u3067\u3044\u308d\u3044\u308d\u3084\u3063\u3066\u305f\u3093\u3060\u304c\u3001if\u4fee\u98fe\u5b50\u3068\u304bor die\u3068\u304b\u304a\u3082\u3057\u308d\u3044\u3067\u3059\u306d\u3002<\/p>\n<pre>print \"$1 : $2\" if(m\/(\\S+)\\s+(\\S+)\/);<br \/>open IF,'<','test.txt' or die;<\/pre>\n<p>if\u4fee\u98fe\u5b50\u306f\u898b\u3066\u306e\u901a\u308a\u3002if\u304c1\u6587\u3060\u3051\u306b\u304b\u304b\u308b\u3068\u304d\u306b\u4f7f\u3046\u3002<br \/>or die\u306f\u6709\u540d\u3067\u3059\u3088\u306d\u3002open\u306b\u5931\u6557\u3057\u305f(\u8fd4\u308a\u5024\u304cfalse)\u306e\u3068\u304d\u306fdie\u3059\u308b\u3068\u3002<br \/>&a() or &b();\u3068\u3044\u3046\u306e\u306f\u3001&a()\u306e\u7d50\u679c\u304ctrue\u306a\u3089\u4f55\u3068or\u3057\u3066\u3082true\u306a\u306e\u3067&b()\u306f\u5b9f\u884c\u3057\u306a\u3044\u3068\u3044\u3046\u6027\u8cea\u304c\u3042\u308b\u3068\u3002<br \/>\u3053\u308c\u3092\u4f7f\u3063\u3066or die;\u3068\u3059\u308b\u3068\u3001\u8fd4\u308a\u5024\u304ctrue\u306a\u3089\u3070die\u306f\u5b9f\u884c\u3055\u308c\u306a\u3044\u3001\u9006\u306b\u8a00\u3046\u3068false\u306a\u3089die\u3092\u5b9f\u884c\u3059\u308b\u3068\u3002<br \/>\u305d\u3046\u306a\u308b\u308f\u3051\u3067\u3059\u306d\u3002\u306a\u304b\u306a\u304b\u304a\u3082\u3057\u308d\u3044\u3067\u3059\u306d\u3002\u4e00\u898b\u308f\u3051\u308f\u304b\u3089\u3093\u3051\u3069\u3002<\/p>\n<hr \/>\n<p>perlsh\u3067\u3044\u308d\u3044\u308d\u3084\u3063\u3066\u305f\u308f\u3051\u3067\u3059\u304c\u3001\u4eca\u65e5\u306f\u305d\u306e\u8a71\u3067\u306f\u306a\u3044\u3088\u3002<br \/>at\u30b3\u30de\u30f3\u30c9\u306e\u8a71\u3002<\/p>\n<pre>$ at 2044<br \/>at> echo \"foo\"|tee \/tmp\/out<br \/>at> <eot>(Ctrl+d)<br \/>job 2 at 2008-08-16 20:44<br \/><\/pre>\n<p>at 2041\u3068\u5b9f\u884c\u3057\u3066\u3001\u30b3\u30de\u30f3\u30c9\u3092\u66f8\u304f\u3068\u3002\u3059\u308c\u3070\u5f53\u65e520\u664241\u5206\u306b\u305d\u306e\u30b3\u30de\u30f3\u30c9\u304c\u5b9f\u884c\u3055\u308c\u308b\u3068\u3002<br \/>\u3055\u3066\u3001tee\u30b3\u30de\u30f3\u30c9\u306f\u30d5\u30a1\u30a4\u30eb\u306b\u66f8\u304d\u51fa\u3059\u4e00\u65b9\u3001\u6a19\u6e96\u51fa\u529b\u306b\u3082\u306f\u304d\u51fa\u3059\u3068\u3044\u3046T\u5b57\u8def\u3067\u3059\u3002<br \/>\u306a\u306e\u3067\u3001\u6a19\u6e96\u51fa\u529b\u304c\u51fa\u307e\u3059\u3002\u305d\u306e\u7d50\u679c\u306f\u30e1\u30fc\u30eb\u3067\u30e6\u30fc\u30b6\u30fc\u5b9b\u306b\u9001\u4fe1\u3055\u308c\u307e\u3059\u3002<br \/>\u306a\u306e\u3067\u805e\u304d\u305f\u304f\u306a\u3051\u308c\u3070>\/dev\/null 2>&1\u3092\u3064\u3051\u308c\u3070\u3044\u3044\u308f\u3051\u3067\u3059\u306d\u3002\u4f7f\u3044\u9053\u3068\u3044\u3046\u3068\u679c\u3066\u3057\u306a\u304f\u9577\u3044make\u3092\u51e6\u7406\u3059\u308b\u305f\u3081\u304b\u306a?<br \/>\u30ea\u30e2\u30fc\u30c8\u3067\u64cd\u4f5c\u3057\u3066\u308b\u3068\u3053\u3046\u3044\u3046\u3053\u3068\u3042\u308b\u3093\u3067\u3059\u306d\u3002<br \/>\u306a\u3093\u305bmake\u3057\u3066\u308b\u3042\u3044\u3060\u5207\u65ad\u3059\u308b\u306b\u3067\u304d\u306a\u3044\u304b\u3089\u3002<br \/>\u4ee5\u524d\u3001\u305d\u3093\u306a\u3068\u304d\u306f\u76f4\u63a5\u64cd\u4f5c\u306b\u5207\u308a\u66ff\u3048\u3066\u3001make\u53e9\u3044\u3066\u305f\u3002<br \/>\u3068\u308a\u3042\u3048\u305a\u975e\u5e38\u306b\u3069\u3046\u3067\u3082\u3044\u3044Makefile\u3092\u4f5c\u6210\u3057\u3066\u307f\u305f\u3002<\/p>\n<pre>test:   test.o foo.o<br \/>test.o: header.h<br \/>foo.o:  header.h<\/pre>\n<p>\u3069\u3046\u3082\u3053\u308c\u3060\u3051\u3067\u3044\u3044\u3089\u3057\u3044\u3002\u6700\u7d42\u7684\u306a\u30d5\u30a1\u30a4\u30ebtest\u306ftest.o(test.c\u3092\u30b3\u30f3\u30d1\u30a4\u30eb)\u3001foo.o(foo.c\u3092\u30b3\u30f3\u30d1\u30a4\u30eb)\u3092\u30ea\u30f3\u30af\u3059\u308c\u3070\u3044\u3044\u3002<br \/>test.o\u3082foo.o\u3082\u4f5c\u308b\u3068\u304d\u306bheader.h\u3092\u8aad\u307f\u8fbc\u307f\u307e\u3059\u3088\u3002\u3068\u3044\u3046\u3053\u3068\u3092\u66f8\u3044\u305f\u3060\u3051\u3002<br \/>\u3053\u308c\u3067\u66f4\u65b0\u6642\u523b\u306a\u3069\u3092\u78ba\u8a8d\u3057\u3066\u5fc5\u8981\u306a\u30b3\u30f3\u30d1\u30a4\u30eb\u3092\u3084\u3063\u3066\u304f\u308c\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<br \/>\u3055\u3066\u3001\u305d\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\u3057\u3066\u3001at\u3067make >\/dev\/null 2>&#038;1\u3092\u767b\u9332\u3059\u308b\u3002<br \/>\u6642\u9593\u306b\u306a\u3063\u305f\u3089\u5b8c\u6210\u3057\u3066\u3044\u305f\u3002<br \/>\u5b9f\u969b\u306f\u7d42\u4e86\u901a\u77e5\u3092\u53d7\u3051\u53d6\u308b\u305f\u3081\u306bmake 2>&#038;1 | tail\u306a\u3069\u3092\u767b\u9332\u3059\u308b\u306e\u304c\u3044\u3044\u304b\u306a\u3002<\/p>\n<hr \/>\n<p>at\u306fatd\u3068\u3044\u3046\u30c7\u30fc\u30e2\u30f3\u304c\u52d5\u304b\u3057\u3066\u304f\u308c\u3066\u307e\u3059\u3002<br \/>\u307e\u3041cron\u3068\u540c\u3058\u304f\u7e01\u306e\u4e0b\u306e\u529b\u6301\u3061\u3067\u3059\u3002<br \/>\u3057\u304b\u3057cron\u306b\u6bd4\u3079\u308b\u3068\u968f\u5206\u3068\u77e5\u540d\u5ea6\u4f4e\u3044\u3067\u3059\u304b\u3089\u306d\u3002<br \/>\u3051\u3069\u4e00\u56de\u3057\u304b\u5b9f\u884c\u3057\u306a\u3044\u306a\u3089at\u306e\u65b9\u304c\u4fbf\u5229\u3067\u3059\u306d\u3002<br \/>\u3061\u306a\u307f\u306b\u4f55\u3092\u3057\u305f\u304b\u3063\u305f\u306e\u304b\u3068\u3044\u3046\u306812\u664200\u5206\u306b\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u3002<br \/>\u4e00\u56de\u3084\u3063\u3066\u307f\u305f\u304b\u3063\u305f\u3060\u3051\u3060\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Perl\u3067\u3044\u308d\u3044\u308d\u3084\u3063\u3066\u305f\u3093\u3060\u304c\u3001if\u4fee\u98fe\u5b50\u3068\u304bor die\u3068\u304b\u304a\u3082\u3057\u308d\u3044\u3067\u3059\u306d\u3002 print &#8220;$1 : $2&#8221; if(m\/(\\S+)\\s+(\\S+)\/);open IF,&#8217;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-1377","post","type-post","status-publish","format-standard","hentry","category-computer"],"_links":{"self":[{"href":"https:\/\/hdmr.org\/d\/index.php?rest_route=\/wp\/v2\/posts\/1377","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hdmr.org\/d\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hdmr.org\/d\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hdmr.org\/d\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hdmr.org\/d\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1377"}],"version-history":[{"count":0,"href":"https:\/\/hdmr.org\/d\/index.php?rest_route=\/wp\/v2\/posts\/1377\/revisions"}],"wp:attachment":[{"href":"https:\/\/hdmr.org\/d\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1377"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hdmr.org\/d\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1377"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hdmr.org\/d\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1377"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}