ToDo:
¤½¤¦¤¤¤¨¤Ð sed sort ¤Ï¥ë¡¼¥×Ÿ³«¤µ¤ì¤¿¾õÂÖ¤Ç ÃÖ¤¤¤Æ¤¢¤ë¤ó¤À¤±¤É¡¢ ¤Á¤ã¤ó¤È¥ë¡¼¥×¤Ë¤¹¤ì¤Ð¤¹¤´¤¤½Ì¤à¤È»×¤¦¡£ ͽÁۤǤÏ100Àڤ롣
¤±¤É¤³¤ì¤¬¤á¤ó¤À¤¯¤µ¤¤¤ó¤À¤Ê¡¼¡£
¤Þ¤¡¤Ç¤âBF¥³¥ó¥Ñ¥¤¥é½ñ¤¯¤è¤ê¤Ï¤Ï¤ë¤«¤Ë¥«¥ó¥¿¥ó¤À¤í¤¦¡£
(02:08)
i@u ~/wrk/ag> cat csort.dat | sed -f csort.sed ..///:aaaaaaaaaaaaaaaaaaaabbbbbcccddddddddddeeeeeeeeeeeeeeeeeeeeeeeeeeeefffffggggggggghhhhhhhhhhhhiiiiiiiiiiiiiiiijkklllllllllllmmmmmnnnnnnnnnnnnnnnnnnnnnnnooooooooooooooooooooooppprrrrrrrrrssssssssssssssssssttttttttttttttttttttttttttttttttuuuuuuvvvvwwwwwwyyy
¥Æ¥¹¥ÈÆó¤ÄÌܤ¬¥¿¥¤¥à¥¢¥¦¥È¤¹¤ë¤Î¤Ç¤¢¤Ã¤¿¡£ sed ¤ò¹â®²½¤¹¤ë¤Î¤È¤«¥¢¥Û¤À¤Ê¤¡¡£
¤¢¤È
y/ !,.\/:<Habcdefghijklmnoprstuvwy/!,.\/:<Habcdefghijklmnoprstuvwy@/
¤È¤«¤¬¤¢¤ë¤Î¤Ç100ÀÚ¤ë¤È¤«¤ÏÁ´Á³¤¢¤ê¤¨¤Ê¤¤ÏäÀ¤Ã¤¿¡£
¤¦¡¼¤ó¥á¥¤¥ó¥ë¡¼¥×¤¬ÃÙ¤¤¤ó¤À¤È¤Ï»×¤¦¤ó¤À¤±¤É¡¢ ¤³¤ì¤ÎºÇŬ²½¤Î¤·¤«¤¿¤È¤«¤µ¤Ã¤Ñ¤ê¤ï¤«¤é¤Ê¤¤¡£ ¥¢¥ê¥´¥ê¥º¥àÊѤ¨¤Ê¤¤¤È¤¤¤±¤Ê¤µ¤½¤¦¤Ç¤½¤ì¤Ï¤È¤Æ¤â¤ä¤ê¤¿¤¯¤Ê¤¤¡£ ¤¦¡¼¤ó¡£
(03:10)
csort.sed»×¤Ã¤¿¤è¤êŤ¯¤Ê¤Ã¤¿¡£ ¥á¥¤¥ó¥ë¡¼¥×¤¬¹â®²½¤Î¤»¤¤¤Ç20-30B¤¯¤é¤¤Â礤¯¤Ê¤Ã¤¿¤ß¤¿¤¤¡£
(03:57)
/usr/share/doc/sed/examples/dc.sed ¤ò¸«¤Æ¤ß¤è¤¦¡£
# Print a number in a non-decimal output base. Uses registers a,b,c,d. # Handles fractional output bases (O<-1 or O>=1), unlike other dc's. # Converts the fraction correctly on negative output bases, unlike # UNIX dc. Also scales the fraction more accurately than UNIX dc. # s,|?p,&KSa0kd[[-]Psa0la-]Sad0>a[0P]sad0=a[A*2+]saOtd0>a1-ZSd[[[[ ]P]sclb1\ !=cSbLdlbtZ[[[-]P0lb-sb]sclb0>c1+]sclb0!<c[0P1+dld>c]scdld>cscSdLbP]q]Sb\ [t[1P1-d0<c]scd0<c]ScO_1>bO1!<cO[16]<bOX0<b[[q]sc[dSbdA>c[A]sbdA=c[B]sbd\ B=c[C]sbdC=c[D]sbdD=c[E]sbdE=c[F]sb]xscLbP]~Sd[dtdZOZ+k1O/Tdsb[.5]*[.1]O\ X^*dZkdXK-1+ktsc0kdSb-[Lbdlb*lc+tdSbO*-lb0!=aldx]dsaxLbsb]sad1!>a[[.]POX\ +sb1[SbO*dtdldx-LbO*dZlb!<a]dsax]sadXd0<asbsasaLasbLbscLcsdLdsdLdLak[]pP, b next
¤¦¤¦¤à
(18:42)
ÄɲÃͽÄê¸À¸ì
¤È¤«¹Í¤¨¤Æ¤¿¤±¤É¤¹¤Ã¤«¤ê˺¤ì¤Æ¤¿¤è¡ª
Æþ½ÐÎϤɤ¦¤¹¤ó¤À
(20:51)
Á° | 2007ǯ 2·î |
¼¡ | ||||
Æü | ·î | ²Ð | ¿å | ÌÚ | ¶â | ÅÚ |
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 |
Á´¤Æ¥ê¥ó¥¯¥Õ¥ê¡¼¤Ç¤¹¡£ ¥³¡¼¥ÉÊҤϼ«Í³¤Ë»ÈÍѤ·¤Æ¤¤¤¿¤À¤¤¤Æ¹½¤¤¤Þ¤»¤ó¡£ ¤½¤Î¾¤Î¤â¤Î¤ÏGPL°·¤¤¤Ç¤¢¤ì¤Ð¤¢¤é¤æ¤ë»ÈÍѤ˴ؤ·¤Æʸ¶ç¤Ï¸À¤¤¤Þ¤»¤ó¡£ ¤Ê¤Ë¤«¤¢¤ì¤Ð²¼µ¥á¡¼¥ë¥¢¥É¥ì¥¹¤Ø¡£
¤¼¤Ò Unlambda ¤È HQ9+ ¤â¡ª
Unlambda ¤Ï¤Þ¤¡Æþ¤ì¤¿¤¤¤È¤³¤í¤Ç¤¹¤¬¡¢¥¢¥ì¥ª¥Õ¥£¥·¥ã¥ë¤Ê¼ÂÁõ¤¬ Haskell ¤Ç¼ê¤ËÉ館¤ë¤Î¤«¤Ê¤¢¤È¤¤¤¦¡£ HQ9+ ¤Ï»ÅÍͤ¬Û£Ëæ¤Ê¤Î¤Ç¥À¥á¤Ç¤¹¡£
* H Ì¿Îá¤Î»ÅÍͤ¬ÉÔÆ©ÌÀ (cf. http://shinh.skr.jp/m/?date=20070202#p17)
* »ÅÍͤˤ¢¤ëÄ̤ê¤Î¼ÂÁõ¤¬¤ª¤½¤é¤¯¸½»þÅÀ¤Ç¸ºß¤·¤Ê¤¤ (cf. HQ9+¤òÍѤ¤¤Æºî¤é¤ì¤¿¼ÂÍÑŪ¤Ê¥×¥í¥°¥é¥à¤Ï¡¢¤½¤ì°Ê³°¤Î¥×¥í¥°¥é¥ß¥ó¥°¸À¸ì¤òÍѤ¤¤¿¾ì¹ç¤ËÈæ¤Ù¤ÆÌó20ÇܤήÅÙ¤ÇÆ°ºî¤¹¤ë¤È¤µ¤ì¤Æ¤¤¤ë http://ja.wikipedia.org/wiki/HQ9+)
¤³¤Î¤è¤¦¤ËÉÔÆ©ÌÀ¤Ê¸À¸ì¤ò»Å»ö¤Ç»È¤¦¿Í¤Îµ¤¤¬ÃΤì¤Þ¤»¤ó¡£¤ä¤Ï¤ê¡¢°Â¿´¤·¤Æ10ǯư¤¯¥×¥í¥°¥é¥à¤ò½ñ¤¯¤¿¤á¤Ë¤Ï¡¢ ANSI ɸ½à¤Ë¤Ê¤Ã¤Æ¤¤¤ëɬÍפ¬¤¢¤ê¡¢¤È¤Ê¤ë¤È¡¢ Common LISP ¤Î¤ß¤¬Í£°ì¤Î²ò¤È¤Ê¤ë¤³¤È¤Ï¸À¤¦¤Þ¤Ç¤â¤¢¤ê¤Þ¤»¤ó¡£¤Ê¤Ë¤è¤ê¡ÖLISP¤Î¤¤¤¤¤È¤³¤É¤ê¡×¤ò¼«¾Î¤¹¤ë HQ9+ ¤È°ã¤¤¡¢ Common LISP ¤Ï¥Á¥å¡¼¥ê¥ó¥°´°Á´¤Ê¤Î¤Ç¤¹¡£
ŬÅö¤¹¤®¤ë¥Ñ¥í¥Ç¥£¤À¡£¤¹¤ó¤Þ¤»¤ó¡£
> ÌÀÆüÁᵯ¤
³Î¤«¤Ë¡£
º£¤Ï¡¢¤â¤¦¿²¤Æ¤·¤Þ¤Ã¤Æ¡¢ÌÀÆüÁᵯ¤¤¹¤ì¤Ð¤Ç¤¤ëµ¤¤¬¤·¤Æ¤Þ¤¹¡£