ç°¡åã«è¨ãã¨ãããããã¨ã§ããä»æ¥ã¯ããã ãè¦ãã¦å¸°ã£ã¦ãã ããã perl -anal -e "â¦" åæ§ã®ãªãã·ã§ã³ã¯ Ruby ã§ã使ãã¾ãã 解説 -a ãããªãè¦ãããªããªãã·ã§ã³ã§ãããå ¥åã空ç½æåã§åºåãã@F ã¨ããé åã«å ¥ãã¦ããã¾ãããã以å¤ã®å½±é¿ã¯ãªãã®ã§ä½¿ããªãã¨ãã§ãæå®ãã¦åé¡ãªãã2 åæå®ãã¦ãã®ãæå³ãªãã§ããèªååããã§ããRuby ã®å ´å㯠$F ã§ããã -n -e ã§æå®ãããã³ã¼ãã LINE: while (<>) { ⦠} ã§å²ã¿ã¾ããæ¨æºå ¥åããã¡ã¤ã«ãä¸è¡ãã¤å¦çããã¨ãã«ä¾¿å©ãsed ã grep ãç°¡åã«æ¸ãã¾ãããã¯ã³ã©ã¤ãã¼ã§ã¯å¤æ§ãããªãã·ã§ã³ã§ãããã代ããã« -p ãæå®ãããã¨ã§æå¾ã« print; ãããã¨ãã§ãã¾ãã -l -n ã -p ãæå®ããã¦ããã¨ãã«åå ¥åã chomp ãã¾ããã¾ããååºåã«æ¹è¡ã追å
{{#tags}}- {{label}}
{{/tags}}