cut ã³ãã³ã 2016/06/11 ã¿ãåºåãã§ãã£ã¼ã«ããé¸æãã¦åºåãããã¾ãã¯åè¡ã®ä¸ã®ä¸é¨ãç¯å²æå®ãã¦åºåããã³ãã³ãã cutã³ãã³ãã®ä½¿ç¨ä¾ã¨ãåããã¨ãããPerlã¯ã³ã©ã¤ãã¼ã®ä¾ ## ã¿ãåºåãã§æåã®åã¨3åç®ã ããæ½åºãã¦ãã¿ãåºåãã§åºåãã $ cut -f1,3 foo.txt $ cat foo.txt | cut -f1,3 $ cat foo.txt | perl -anle 'print "$F[0]\t$F[2]"' ## 以ä¸ã®ããã«ãã¦ãåã®é çªã¯å ¥ãæ¿ãã¦ãããªã $ cut -f3,1 foo.txt ## Perlãªãã§ãã $ cat foo.txt | perl -anle 'print "$F[2]\t$F[0]"' ## åè¡ã®4æåç®ä»¥éãåºåãã $ cut -b4- foo.txt $ cat foo.txt | cut
{{#tags}}- {{label}}
{{/tags}}