Over at Hacker News there are often threads about less-traveled UNIX and Linux commands. One particular comment collected a few of the posts, and I decided to parse all of those threadsâ commands, plus my own favorite list of obscure entries, and put them in one place. column: create columns from text input tr: translate/substitute/delete input join: like a database join but for text comm: file co
ãããããªç¥ç§°ãå¤ãï¼ ã³ãã³ãããã£ã¬ã¯ããªåãªã©ãUnixãªOSã¯ã¨ã«ãããããããªç¥ç§°ãå¤ãã§ããç¹ã«ãããã¯ããã®äººã¯ãã®ç¥ç§°ããã¿ããããã«å¿ãæãã¦ãã¾ããã¨ã¯å¤ãã¨æãã¾ããå®éã«Schooã§Unixã®ææ¥ããã£ãã¨ãããã®ç¥ç§°ã説æãã¾ããã ã¨ããããã§ã¾ã¨ãã¦ã¿ã¾ããããªãç¥ç§°ãå¤ãã®ããæ°ã«ãªã人ã¯ãã¡ããèªãã§ã¿ã¦ãã ããã UNIXã¨ããèãæ¹âãã®è¨è¨ææ³ã¨å²å¦ ä½è :Mike Gancarzãªã¼ã 社Amazon â»ã¡ãªã¿ã«ãLinuxã«ãã»ã¼éç¨ããã¨æãã¾ããMacããã¼ã¹ã«æ¸ãã¦ããã®ã§Unixã¨ãã表è¨ã«ãã¦ãã¾ãã ãã£ã¬ã¯ããªå å称 æ¬æ¥ã®æå³ åè usr User Services and Routines ããã¯è¥å¹²æªããã§ããUserã¨ãã説ã var Variable ãã°ãã¡ã¼ã«ã®æ å ±ãªã©ãå¤ããããæ å ±ãæ±ããã® tmp Tempor
Why does the C preprocessor in GCC interpret the word linux (small letters) as the constant 1? test.c: #include <stdio.h> int main(void) { int linux = 5; return 0; } Result of $ gcc -E test.c (stop after the preprocessing stage): .... int main(void) { int 1 = 5; return 0; } Which of course yields an error. (BTW: There is no #define linux in the stdio.h file.)
ã¨ã³ã¸ãã¢ã¨ããè·æ¥æãã·ã§ã«ã¹ã¯ãªãããæ¸ããã¨ã¯ã¡ããã¡ããããã®ã§ãããèªåãªãã«æ°ãä»ãã¦ãããã¨ãåå¿é²ï¼èªåã¸ã®æããå«ãã¦ãç°¡åã«æ¸ãã¦ã¿ããã¨æãã¾ãã å¤æ°ã¯å¤§æå ã·ã§ã«ã¹ã¯ãªããæ¸ãã¦ããã°å¤æ°ã®åºçªã¯è³ãã¨ããã§ããã§ãããããã®éãå¯èªæ§ãå¢ãããã«ãå¤æ°ã¯å¤§æåã使ã£ã¦ãã¾ãã RET=`cmd1`ã¿ããã«ã好ã¿ã®åé¡ãããã§ãããããåãããããã®ã§ã ã¯ãªãã¼ã·ã§ã³ã¯é¸ã¶ ã¯ãªãã¼ã·ã§ã³ã«ã¯ã·ã³ã°ã«ã ã£ãããããã«ã ã£ããè²ã ããã¾ããã使ãåãã¦ãããã»ããããã§ãããã å¤æ°ã®å±éããªãããã§ããã°ãã·ã³ã°ã«ã¯ãªã¼ãã¼ã·ã§ã³ã®ã»ããã¹ãã¼ãã§ãããããå±éãããã®ãªãããã«ã¯ãªã¼ãã¼ã·ã§ã³ã使ãã°ã¨ã ããã«ã¯ãªã¼ãã¼ã·ã§ã³ã使ãã®ã«ãæå³ããã£ã¦ãå¤æ°ã¯ã$RETãã®ããã«ã¯ãªãã¼ã·ã§ã³ã§å²ã¾ãªãã¦ãåä½ã¯ããã¦ãããã®ã§ããã echo "${RET
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}