{"published":"2016-10-25 11:57:26","type":"rich","image_url":null,"width":"100%","blog_title":"ablog","author_name":"yohei-a","description":"Perl \u30ef\u30f3\u30e9\u30a4\u30ca\u30fc\u3067\u30b7\u30a7\u30eb\u5909\u6570\u3092\u6e21\u3059\u306b\u306f -s \u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u3048\u3070\u3088\u3044\u3002 \u66f8\u5f0f perl -se '...' -- -Perl\u3067\u4f7f\u3046\u5909\u6570\u540d=\u30b7\u30a7\u30eb\u5909\u6570\u540d \u5b9f\u884c\u4f8b $ FOO=bar; perl -sle 'print $var' -- -var=$FOO bar \u53c2\u8003 s\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u3044\u307e\u3059 echo -e \"hogehoge\\nfugafuga\" > myfile.txt var=\"hogehoge\\n\";cat myfile.txt | perl -pse 's/$shell_var//' -- -shell_var=$var [\u5c0f\u30cd\u30bf]perl\u30ef\u30f3\u30e9\u30a4\u30ca\u30fc\u306b\u30b7\u30a7\u30eb\u5909\u6570\u3092\u6e21\u3059 - Qi\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohei-a.hatenablog.jp%2Fentry%2F20161025%2F1477364246\" title=\"Perl \u30ef\u30f3\u30e9\u30a4\u30ca\u30fc\u306b\u30b7\u30a7\u30eb\u5909\u6570\u3092\u6e21\u3059 - ablog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","author_url":"https://blog.hatena.ne.jp/yohei-a/","categories":["Perl"],"provider_name":"Hatena Blog","provider_url":"https://hatena.blog","height":"190","url":"https://yohei-a.hatenablog.jp/entry/20161025/1477364246","title":"Perl \u30ef\u30f3\u30e9\u30a4\u30ca\u30fc\u306b\u30b7\u30a7\u30eb\u5909\u6570\u3092\u6e21\u3059","blog_url":"https://yohei-a.hatenablog.jp/"}