(head -n +1 sample.txt && tail -n +2 sample.txt | sort ) > sorted_sample.txt headã¨tailã使ãã°ãä¸éãã¡ã¤ã«ç¡ãã§æ¸ããã以ä¸ã¯ãµã³ãã«ãã¡ã¤ã«ã使ã£ã解説ã ä¾ãã°ãããªãã¡ã¤ã«ãsample.txt id x y 1 1.3 0.6 2 1.1 0.4 3 1.1 0.6 4 1.7 0.4 5 1.5 0.2 6 1.5 0.9 ãããx, yã§ã½ã¼ããããã¨ããã¨ããæ®éã¯ãããã¼ä»¥å¤ã®é¨åã§ã½ã¼ããããã§ãããã ãããã¼ã¨ãã¼ã¿é¨åã®åãåããã¦ãããã«ããã¨ããã head -n +1 sample.txt >>> id x y ã§ããããã¼é¨åãåãåºãã tail -n +2 sample.txt >>> 1 1.3 0.6 2 1.1 0.4 3 1.1 0.6 4 1.7 0.4 5
{{#tags}}- {{label}}
{{/tags}}