2001/5/16 4. ã·ã§ã«ã®ä½¿ãæ¹ (2) æ¨æºåºåã¨æ¨æºã¨ã©ã¼åºåã®ã¤ã¥ã ãªãã¤ã¬ã¯ã·ã§ã³ã®æå®ã¯é çªã«ãã£ã¦éãã 次ã®2ã¤ã¯ã©ãã¡ããã®ã? $ ls >file 2>&1 $ ls 2>&1 >file ãªãã¤ã¬ã¯ã·ã§ã³ã®æå¹ç¯å²ã¯ãã¤ãã®ä¸ã ãã $ ls /var/spool/cron 2>&1 | cat -n $ ls /var/spool/cron | cat -n 2>&1 ã·ã§ã«ã¹ã¯ãªããã¨å®è¡å¯è½ãã¡ã¤ã« ãµã¤ããã·ã§ã«ã使ãã¨ãã¯ã対話çã«ãå®è¡ããã ã·ã§ã«ãå¼æ°ãªãã§èµ·åããã¨ãããªãããããã ã·ã§ã«ã«å¼æ°ãä¸ããã¨ãã·ã§ã«ã¯ãã®ããã¹ããã¡ã¤ã«ã®ä¸èº«ã ãããããã¼ãã¼ãããå ¥åããããã®ããã«å®è¡ããã ãã®ãããªãã¡ã¤ã«ããã·ã§ã«ã¹ã¯ãªãã (shell script)ãã¨ãã¶ã ã·ã§ã«ã¹ã¯ãªãã㯠B shell (sh) ã§ãããå®è¡æ¹æ³ã«
{{#tags}}- {{label}}
{{/tags}}