以ä¸ãé·ã ã¨æ¸ãã¦ã¾ãããçµè«ã¯ âç§ã®ç°å¢ã§â大ããªããã¹ããã¡ã¤ã«ãawkã§å¦çããã¨ãã«catã§æãè¾¼ãã¨éãçç± - ablogã«æ¸ãã¦ã¾ã ã¯ããã« awk file ãã cat file|awk ã®ã»ããéãã¨ãã以ä¸ã®ããã°ã¨ã³ããªãèå³æ·±ãã®ã§èª¿ã¹ã¦ã¿ã¾ããã ã¡ãªã¿ã« cat file|awk ãéããªãç°å¢ã¯ç¨ã§ãå··ã§ã¯ awk file ã®ã»ããéãç°å¢ã®ã»ããå¤ãããã§ãã©ã¡ããéããã¯ç°å¢ä¾åã§ãã [root@localhost sample]# cat command1 awk '$5 ~ /((26|27|28|29|30)\/Jun|(01|02|03)\/Jul)/{ print }' sample.txt > result1.txt ï¼ä¸ç¥ï¼ [root@localhost sample]# time sh command1 real 0m53.92
{{#tags}}- {{label}}
{{/tags}}