ä»å㯠Unix ã«ãããæ¨æºå ¥åºåã®ãããã¡ãªã³ã°ã¢ã¼ãã«ã¤ãã¦æ±ãã æ®æ®µãã¾ãæèãã¦ããªãã£ããã© head ã³ãã³ãã®æåããã£ããã«æ°ã«ãªã£ã¦èª¿ã¹ã¦ãã£ãããªããªãé¢ç½ãã£ãã 使ã£ãç°å¢ã¯æ¬¡ã®éãã $ sw_vers ProductName: Mac OS X ProductVersion: 10.12.6 BuildVersion: 16G1036 $ python --version Python 3.6.3 head ã³ãã³ã ã¾ããhead ã³ãã³ãã¨ããã®ã¯æ¨æºåºåã®ä¸ããå é ã«ããè¡ã ããåãåºãã®ã«ä½¿ãããã¦ã¼ãã£ãªãã£ã®ãã¨ã ä¾ãã°ã次ã®ããã«ã㦠5 è¡ããåºåã®ä¸ããå é 3 è¡ã ããåãåºããã¿ãããªç¨éã§ä½¿ãã $ for i in 1 2 3 4 5; do echo $i; done | head -n 3 1 2 3 左辺ã«ããã³ãã³ãã®æ¨æº
{{#tags}}- {{label}}
{{/tags}}