æ¨æºã¨ã©ã¼åºåã¨æ¨æºåºåãåæã«ãã¤ãã«éãã¨ãã2>&1 | ã¨è¨è¿°ãããã¨ãå¤ãã§ãããã $ ls /etc/hosts /notexist 2>&1 | cat > ls.dat $ cat -n ls.dat 1 ls: cannot access '/notexist': No such file or directory 2 /etc/hosts Bash Reference Manualãèªãã§ããã¨ããã®2>&1 |ã|&ã¨ããç縮è¨æ³ã§æ¸ããã¨ãããã¨ã«æ°ä»ãã¾ããã $ ls /etc/hosts /notexist |& cat > ls2.dat $ cat -n ls2.dat 1 ls: cannot access '/notexist': No such file or directory 2 /etc/hosts ï¼èªã¿ã«ããã®ã§ï¼ãã¾ã使ããã¨ã¯ãªããã
{{#tags}}- {{label}}
{{/tags}}