>>4818 ¤Õ¤¯¤· ¤ï¤«¤Ã¤Æ¤ª¤é¤ì¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¤¬¡¢use base ¤Ï built-in ¤Êʸˡ¤Ç¤Ï¤Ê¤¯ ¤¿¤À base.pm ¤ò use ¤·¤Æ¤¤¤ë¤À¤±¤Ê¤Î¤Ç¡¢base Æâ¤Î sub import ¤Î°ú¿ô¤È¤·¤Æ ÅϤµ¤ì¤ë¤«¤é¡¢¤È¤¤¤¦¤³¤È¤Ç¤¹¤Í¡£strict ¤â¼ÂÂÎ¤Ï strict.pm ¤Ê¤Î¤ÇƱÍÍ¤Ë strict refs ¤Ç¤Ï¤Ê¤¯ 'refs' ¤È¤·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¤È¡£ ¸Ä¿ÍŪ¤Ë¤Ï¡¢¤³¤³¤Þ¤Ç±ø¤¤Â¤¤ê¤Ë¤¹¤ë¤«¤Í¤§¡¢¤È¤¤¤¦´¶¤¸¤Ç¤¹¡£¤¤¤Á¤ª¤¦ ¤Ä¤¸¤Ä¤Þ¤ò¤¢¤ï¤»¤Æ¤ë¤Î¤Ï¤¹¤´¤¤¤Ç¤¹¤¬¡£ |
awk¤ò»È¤Ã¤Æ¥Õ¥¡¥¤¥ë¤«¤é¤¢¤ëÉôʬ¤Î¥Ç¡¼¥¿¤ò¼è¤ê½Ð¤½¤¦¤È¤·¤Æ¤¤¤Þ¤¹¡£ ¥Õ¥¡¥¤¥ë¤ÎÆâÍÆ ---------------------------------- ---------------------------------------- Tue Jul 31 09:00:00 Jst 2007 xxxxxx xxxxxx xxxxxx xxxxxx Tue Jul 31 09:00:00 Jst 2007 ---------------------------------------- Tue Jul 31 09:10:00 Jst 2007 xxxxxx xxxxxx xxxxxx xxxxxx Tue Jul 31 09:10:00 Jst 2007 ---------------------------------------- Wed Aug 1 09:00:00 JST 2007 xxxxxx xxxxxx xxxxxx Wed Aug 1 09:00:00 JST 2007 ³ºÅö¤ÎÍËÆü¡¢·î¡¢Æü¤«¤é»Ï¤Þ¤ë¹Ô°Ê¹ß¤«¤é ºÇ½ª¹Ô¤Þ¤Ç¤¹¤Ù¤Æ¤ò¼è¤ê½Ð¤½¤¦¤È¤·¤Æ¤¤¤ë¤Î¤Ç¤¹¤¬¡¢ awk¤Ç¾å¼ê¤¯¤¤¤¤Þ¤»¤ó¡£ °Ê²¼¤ÎÍͤʥ¨¥é¡¼¤¬¤Ç¤Æ¾å¼ê¤¯¤¤¤¤Þ¤»¤ó¡£ ¤É¤¦¤¹¤ì¤Ð¤è¤¤¤Î¤Ç¤·¤ç¤¦¤«¡£ awk: syntax error near line 1 awk: bailing out near line 1 ¥·¥§¥ë¤ÎÆâÍÆ ----------------------------------------- #!/bin/sh LOG_FILE="/tmp/kekka.log" #DATE=`date "+%a %b %e"` DATE=`date +%C | cut -c 1-10` awk -v DAY=$DATE'/^DATE/,/\\r/ {print $0}' ${LOG_FILE} exit 0 |
UNIX¤Î´Ä¶ÊÑ¿ô¤ÎLANG¤Ë»ÈÍѤ¹¤ë¸À¸ì¤Î»ØÄê¤Ë ¡Öjapanese¡×¤¬¤¢¤ë¤Î¤Ç¤¹¤¬¡¢¤³¤ì¤Ï¡¢ÆüËÜ¸ì ¤¬»È¤¨¤ë¤Î¤Ç¤¹¤«¡£¤½¤ì¤È¤âÆüËܸì¤ÎSJIS¤¬ »È¤¨¤ë¤Î¤Ç¤·¤ç¤¦¡£ ¤Þ¤¿¡¢UNIX¤ÎOS¤¬¤É¤Î¥³¡¼¥É¤Ê¤Î¤«¤É¤³¤ò¸«¤ì¤Ð ¤ï¤«¤ë¤Î¤Ç¤·¤ç¤¦¤«¡£ ¤Þ¤¿¡¢EBCDIC¥³¡¼¥É¤¬¤¢¤ë¤Î¤Ç¤¹¤¬¡¢¤³¤ì¤ò»È¤¦¤Ë¤Ï ¤É¤¦¤·¤¿¤é¤è¤¤¤Î¤Ç¤·¤ç¤¦¤«¡£ |
>>4820 ¤Ù¤¿ > awk -v DAY=$DATE'/^DATE/,/\\r/ {print $0}' ${LOG_FILE} ¤Þ¤º¤Ï % sh -x ¥¹¥¯¥ê¥×¥È̾ ¤Ê¤É¤È¤·¤Æ¡¢°Õ¿Þ¤É¤ª¤ê¤Î°ú¿ô¤òÅϤ»¤Æ¤¤¤ë¤«³Îǧ¤·¤Þ¤·¤ç¤¦¡£¤³¤Î¾ì¹ç¤Ï awk -v DAY=20/^DATE/,/\\r/ {print $0} a.dat ¤Èɽ¼¨¤µ¤ì¤Þ¤¹¤Î¤Ç¡¢°Õ¿ÞÄ̤ê¤Ç¤Ï¤Ê¤¤¤Ï¤º¤Ç¤¹¡£ ¶ñÂÎŪ¤Ë¤Ï°Ê²¼¤ÎÌäÂ꤬¤¢¤ê¤Þ¤¹¡£ - 20 ¤Ï¤ª¤½¤é¤¯´õ˾¤¹¤ëÃͤǤϤʤ¤ - 20 ¤Î¸å¤Ë¶õÇò¤¬¤Ê¤¤¡£ - DATE ¤ÎÃæ¤Ë¤¢¤ëÊÑ¿ô¤Ç¥Ñ¥¿¡¼¥ó¥Þ¥Ã¥Á¤¹¤ë¤Î¤Ç¤Ï¤Ê¤¯¡¢"DATE" ¤È¤¤¤¦Ê¸»úÎó¤ò õ¤¹¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤ë¡£ - DAY ¤È DATE ¤Î¸íµ¡£ >>4821 ¤Ê¤· > UNIX¤Î´Ä¶ÊÑ¿ô¤ÎLANG¤Ë»ÈÍѤ¹¤ë¸À¸ì¤Î»ØÄê¤Ë > ¡Öjapanese¡×¤¬¤¢¤ë¤Î¤Ç¤¹¤¬¡¢¤³¤ì¤Ï¡¢ÆüËܸì > ¤¬»È¤¨¤ë¤Î¤Ç¤¹¤«¡£¤½¤ì¤È¤âÆüËܸì¤ÎSJIS¤¬ > »È¤¨¤ë¤Î¤Ç¤·¤ç¤¦¡£ °ìÈÌŪ¤Ë¤Ï japanese ¤Ï ja_JP.eucJP¡¦ja_JP.PCK (Shift_JIS)¡¦ja_JP.utf-8 ¤Ê¤É¤Î¥¨¥¤¥ê¥¢¥¹¤Ç¤¢¤ë¤³¤È¤¬Â¿¤¤¤è¤¦¤Ë»×¤¤¤Þ¤¹¡£¼ÂºÝ¤Ë¤É¤Î¥¨¥¤¥ê¥¢¥¹¤Ç ¤¢¤ë¤«¤Ï OS ¤ä¥Ð¡¼¥¸¥ç¥ó¤Ë¤è¤ë¤Ç¤·¤ç¤¦¡£ > ¤Þ¤¿¡¢UNIX¤ÎOS¤¬¤É¤Î¥³¡¼¥É¤Ê¤Î¤«¤É¤³¤ò¸«¤ì¤Ð¤ï¤«¤ë¤Î¤Ç¤·¤ç¤¦¤«¡£ OS ¤Ë¤è¤ê°Û¤Ê¤ë¤È»×¤¤¤Þ¤¹¡£env ¥³¥Þ¥ó¥É¤Ç²¿¤«½Ð¤Æ¤¯¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£ > ¤Þ¤¿¡¢EBCDIC¥³¡¼¥É¤¬¤¢¤ë¤Î¤Ç¤¹¤¬¡¢¤³¤ì¤ò»È¤¦¤Ë¤Ï¤É¤¦¤·¤¿¤é¤è¤¤¤Î¤Ç¤·¤ç¤¦¤«¡£ Î㤨¤Ð dd ¥³¥Þ¥ó¥É¤Ç ASCII ¤ËÊÑ´¹¤Ç¤¤Þ¤¹¡£¾¦ÍѤΥ¢¥×¥ê¥±¡¼¥·¥ç¥ó¤â ¤¤¤¯¤Ä¤«½Ð¤Æ¤¤¤ë¤è¤¦¤Ç¤¹¡£ |
UNIX ¤ÎÉô²°¤Ë ¥Õ¥¡¥¤¥ëÀ©¸Â¤Þ¤È¤á http://x68000.q-e-d.net/~68user/unix/pickup?%A5%D5%A5%A1%A5%A4%A5%EB%C0%A9%B8%C2%A4%DE%A4%C8%A4%E1 ¤òÄɲä·¤Þ¤·¤¿¡£ |
>>68user ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ >% sh -x ¥¹¥¯¥ê¥×¥È̾ ¤Ç³Îǧ¤·¤Æ¤ß¤Þ¤·¤¿¡£ DAY¤ÈDATE¤Ï¸íµ¤Ç¤¹¤¬¡¢DAY¤Ëľ¤·¤Þ¤·¤¿¤¬·ë²Ì¤ÏƱ¤¸¤Ç¤·¤¿¡£ awk -v DAY=$DATE'/^DAY/,/\\r/ {print $0}' ${LOG_FILE} ¥Ñ¥¿¡¼¥ó¥Þ¥Ã¥Á¥ó¥°¤Î¤È¤³¤í¤¬¡¢°ú¿ô¤ÇÅϤ·¤¿ÃͤǤϤʤ¯¡¢ ¡ÉDAY¡É¤È¤¤¤¦Ê¸»úÎó¤Ç¤·¤¿¡£¡Êʸ»úÎó¤È¸À¤¤ÀÚ¤ì¤ë¤Î¤«¤É¤¦¤«¡£¡©¡Ë |
>>4824 ¤Ù¤¿ ¤Þ¤º¤Ï¥³¥Þ¥ó¥É¥é¥¤¥ó¤«¤é awk ¤òᤤ¤Æ¡¢Àµ¤·¤¤·ë²Ì¤ò¼èÆÀ¤Ç¤¤ë¤è¤¦¤Ë ¤Ê¤ë¤È¤³¤í¤«¤é»Ï¤á¤Þ¤·¤ç¤¦¡£¥·¥§¥ë¥¹¥¯¥ê¥×¥È¤Ï¤½¤Î¸å¡£ ¤¢¤È >>4822 68user > ¶ñÂÎŪ¤Ë¤Ï°Ê²¼¤ÎÌäÂ꤬¤¢¤ê¤Þ¤¹¡£ ¤òľ¤µ¤Ê¤¤¤ÈÆ°¤¤Þ¤»¤ó¡£Ç°¤Î¤¿¤á¡£ |
>>4825 68user ¿§¡¹¤È¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ »î¤·¤Æ¤ß¤Þ¤¹¡£ |
>>4825 68user ¤ä¤Ï¤ê¡¢¡Ö¡°¡×¤ò»ØÄꤷ¤Æ¤¤¤ë¤Î¤Ç¡¢¹Ô¤ÎÀèƬ¤¬¡¢DAY¤È¤¤¤¦ ʸ»úÎ󤫤é»Ï¤Þ¤Ã¤Æ¤¤¤ë¤Î¤òõ¤·¤Æ¤¤¤Þ¤·¤¿¡£ »î¤·¤Ë¥Õ¥¡¥¤¥ë¤ÎÊý¤ò½¤Àµ¤·¡¢ÆüÉÕ¤ò¡ÖDAY Aug 2¡×¤È¤·¤¿¤È¤³¤í ɽ¼¨¤µ¤ì¤Þ¤·¤¿¡£ ¥Þ¥Ã¥Á¥ó¥°¤Î¤È¤³¤í¤Ë¡¢ÊÑ¿ô¤òŸ³«¤Ç¤¤Ê¤¤¤Î¤Ç¤·¤ç¤¦¤«¡£ nawk -v DAY="Fri Aug 10" '/^DAY/,/\\r\\n/ {print $0}' /tmp/kekka_log.log |
>>4822 68user ÊÖ»öÃÙ¤ì¤Æ¤¹¤ß¤Þ¤»¤ó¡£ ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ |
>>4827 ¤Ù¤¿ ÊÑ¿ôŸ³«¤Ï $n ~ VAR ¤È½ñ¤¤Þ¤¹¡£ ¤Ç¡¢/\\r\\n/ ¤Ç¤¹¤¬¡¢¤³¤ì¤¦¤Þ¤¯Æ°¤¤Þ¤¹¤«? awk ¤Ï¤è¤¯¤ï¤«¤ê¤Þ¤»¤ó¤¬¡¢ ¥Þ¥Ã¥Á¤·¤Æ¤Ê¤¤¤È»×¤¤¤Þ¤¹¡£ ¤Ê¤Î¤Ç¡¢DAY ¤«¤é ------ ¤Þ¤Ç¤ò¸«¤ë¤è¤¦¤Ë¤·¤Æ¡¢ awk -v DAY="Fri Aug 10" '$0 ~ DAY,/^--*$/ {print}' ¤« awk -v DAY="Fri Aug 10" 'BEGIN{skip=1} $0 ~ DAY {skip=1;print $0} /^--*$/ {skip=0} skip==1 {print} ' ¤¢¤¿¤ê¤¬¤¤¤¤¤ó¤¸¤ã¤Ê¤¤¤Ç¤¹¤«¤Í¡£ ¤Ê¤ª¡¢¹ÔƬ¤ÎÆüÉÕ¤À¤±¸«¤ë¤Ê¤é¡¢DAY="^Fri Aug 10" ¤Ç¤¹¡£ |
¡Ö¥ê¥À¥¤¥ì¥¯¥È¡×¤Ë¤Ä¤¤¤Æ¤ÎÀâÌÀ¤ÎÃæ¤Î ¡Ø¡Ö¥ê¥À¥¤¥ì¥¯¥È¤Ï±¦¤Ë½ñ¤¤¤¿¤â¤Î¤«¤é½ç¤Ëɾ²Á¤µ¤ì¤ë¤«¤é¡×¤Ï´Ö°ã¤¤¤Ç¤¢¤ë¡£¡Ù ¤Î¤¯¤À¤ê¤¬Ê¬¤«¤ê¤ä¤¹¤¯¤Æ¤Ä¤¤½ñ¤¹þ¤ó¤Ç¤·¤Þ¤¤¤Þ¤·¤¿¡£ ¾¤Î¥µ¥¤¥È¤Ï¾åµ¤Î¤è¤¦¤ÊÀâÌÀ¤Ç½ª¤ï¤Ã¤Æ¤¤¤ë½ê¤¬¤¢¤Ã¤¿¤Î¤Ç¤¹¤¬¡¢ ¤Ê¤ó¤È¤Ê¤¯¡Ö¤ó¡©¡×¤È°ãÏ´¶¤¬»Ä¤Ã¤Æ¤Þ¤·¤¿¡£ ¤Ç¡¢¤³¤Î¥µ¥¤¥È¤ÎÆâÍƤǤ¹¤Ã¤¤ê¤Ç¤¹¡£¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤·¤¿¡£ ¥É¥á¥¤¥ó¤âÁÇŨ¤Ç¤¹(¾Ð) |
>>4830 Ä̤ꤹ¤¬¤ê ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£¤Ä¤¤¤Ç¤Ê¤Î¤Ç½ñ¤¤¤Æ¤ª¤¯¤È¡¢ÀèƬ¤Ë½ñ¤¤¤Æ¤â¤¤¤¤¤Ç¤¹¡£ >/dev/null 2>&1 ls foo.txt |
>>4829 68user ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ ÊÑ¿ô¤ÎŸ³«¤¬¤Ç¤¤Þ¤·¤¿¡£ ¡Ö'$0 ~ DAY¡× ¤Î»È¤¤Êý¤ÏÃΤê¤Þ¤»¤ó¤Ç¤·¤¿¡£ >¤Ç¡¢/\\r\\n/ ¤Ç¤¹¤¬¡¢¤³¤ì¤¦¤Þ¤¯Æ°¤¤Þ¤¹¤«? awk ¤Ï¤è¤¯¤ï¤«¤ê¤Þ¤»¤ó¤¬¡¢ >¥Þ¥Ã¥Á¤·¤Æ¤Ê¤¤¤È»×¤¤¤Þ¤¹¡£ ¥Õ¥¡¥¤¥ë¤ÎºÇ¸å¤Þ¤Ç¸«¤ë¤È¤¤¤¦¤Ä¤â¤ê¤Ç¤·¤¿¡£ EOF¤¬¤³¤Îɽµ¤Ç¤¤¤¤¤Î¤«¤µ¤Ê¤«¤Ç¤¹¤¬¡£¡© ¿ʬ¡¢¥Õ¥¡¥¤¥ë¤ÎºÇ¸å¤Þ¤ÇÁöºº¤·¡¢½ªÎ»¤·¤Æ¤¤¤ë¤Î¤Ç¤Ï¤Ê¤¤¤«¤È¡£ >awk -v DAY="Fri Aug 10" 'BEGIN{skip=1} $0 ~ DAY {skip=1;print $0} /^--*$/ {skip=0} skip==1 {print} ' ÆüÉÕ¤¬Æó¹Ô¤Ç¤Þ¤¹¡£ Fri Aug 10 ¡¦¡¦¡¦ Fri Aug 10 ¡¦¡¦¡¦ **** **** **** Fri Aug 10 ¡¦¡¦¡¦ Fri Aug 10 ¡¦¡¦¡¦ ¸«¤¿¤¤¤Ë¤Ê¤ê¤Þ¤¹¡£ |
>>4832 ¤Ù¤¿ > ¥Õ¥¡¥¤¥ë¤ÎºÇ¸å¤Þ¤Ç¸«¤ë¤È¤¤¤¦¤Ä¤â¤ê¤Ç¤·¤¿¡£ ¤½¤ÎµóÆ°¤Ç¤è¤¤¤Î¤Ç¤¢¤ì¤Ð¡¢ÌäÂê¤Ê¤¤¤È»×¤¤¤Þ¤¹ (¼Â¼Áµ¡Ç½¤·¤Æ¤¤¤Ê¤¤¤È »×¤¦¤Î¤Ç¡¢½ñ¤Êý¤È¤·¤Æ¤Ï¤Þ¤º¤¤¤Ç¤¹¤¬)¡£ > ÆüÉÕ¤¬Æó¹Ô¤Ç¤Þ¤¹¡£ print $0 ¤òºï½ü¤¹¤ë¤Ê¤É¤·¤Æ¤¯¤À¤µ¤¤¡£ |
>>4833 68user ¤ªÎéÃÙ¤ì¤Æ¤¹¤ß¤Þ¤»¤ó¡£ ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤·¤¿¡£ |
Á°¤Ë¤âƱ¤¸¼ÁÌä¤ò¤·¤¿¤Î¤Ç¤¹¤¬¡¢ find¤Î¸¡º÷¤Ç¡¢»ØÄê¥Ç¥£¥ì¥¯¥È¥ê¡Ê¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê¡ËÆâ¤Î ¥Õ¥¡¥¤¥ë¤À¤±¤ò¸¡º÷¤·¡¢-mtime¤ò»ØÄꤷ¤Æ¡¢30ÆüÁ°¤Î¥Õ¥¡¥¤¥ë¤ò ºï½ü¤·¤è¤¦¤È¤·¤Æ¤¤¤Þ¤¹¡£ ÇÛ²¼¤Î¥Ç¥£¥ì¥¯¥È¥ê¤ò¸¡º÷¤·¤Ê¤¤¤è¤¦¡¢-prune¡¡¤ò»ØÄꤷ¤Æ¡¢¤Þ¤º¤Ï¡¢ °Ê²¼¤Î¤è¤¦¤Ë¤·¤¿¤Î¤Ç¤¹¤¬¡¢¡É*.csv¡É°Ê³°¤¬É½¼¨¤µ¤ì¤Æ¤¤¤Þ¤¤¤Þ¤¹¡£ find /home/DATA/backup -name '*.csv' -o -name everyday -prune -o -name monthly -prune -o -name tmp -prune -o -name work -prune -o -print ¤È¼Â¹Ô¤¹¤ë¤È¡¢ ¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê¤È¡¢¡Ö*.csv¡×°Ê³°¤Î¥Õ¥¡¥¤¥ë¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£ find /home/DATA/backup -name '*.csv' -o -name everyday -prune -o -name monthly -prune -o -name tmp -prune -o -name work -prune -o -mtime +30 ¤È¼Â¹Ô¤¹¤ë¤È¡¢ ɽ¼¨¤µ¤ì¤ë¤Î¤Ç¤¹¤¬¡¢¤É¤³¤Î¥Ç¥£¥ì¥¯¥È¥ê¤ò¸¡ºº¤·¤¿·ë²Ì¤«¤ï¤«¤é¤Ê¤¤¾õÂ֤Ǥ·¤Æ¡¢ ³Îǧ¤È¼ÂºÝ¤Ï¡¢rm¡¡¤ò»ØÄꤷ¤Æ¥Õ¥¡¥¤¥ë¤òºï½ü¤¹¤ë¤Ç¡¢¡Ö-exec ls -l {} \;¡× ¤ò¤·¤Æɽ¼¨¤·¤Æ¤ß¤¿¤Î¤Ç¤¹¤¬¡¢ find /home/DATA/backup -name '*.csv' -o -name everyday -prune -o -name monthly -prune -o -name tmp -prune -o -name work -prune -o -mtime +30 -exec ls -l {} \; ¤È¼Â¹Ô¤¹¤ë¤È¡¢ ²¿¤âɽ¼¨¤µ¤ì¤Þ¤»¤ó¡£ find /home/DATA/backup -name '*.csv' -o -name everyday -prune -o -name monthly -prune -o -name tmp -prune -o -name work -prune -o -mtime +30 -print ¤È¼Â¹Ô¤¹¤ë¤È¡¢ ²¿¤âɽ¼¨¤µ¤ì¤Þ¤»¤ó¡£ Àµ¤·¤¯¡¢·ë²Ì¤¬É½¼¨¤µ¤ì¤ë¤è¤¦¤Ë¡¢ ºÇ½ªÅª¤Ë¤Ï¡¢30ÆüÁ°¤È¤«¡¢90ÆüÁ°¤Î¥Õ¥¡¥¤¥ë¤¬ºï½ü¤Ç¤¤ë¤è¤¦¤Ë ¤·¤¿¤¤¤Î¤Ç¤¹¤¬¡¢¤É¤Î¤è¤¦¤Ë¤¹¤ì¤Ð¤è¤¤¤«¡¢ ¶µ¤¨¤Æ¤¯¤À¤µ¤¤¡£ |
>>4836 ¤Ù¤¿ > find /home/DATA/backup -name '*.csv' -o -name everyday -prune -o -name monthly -prune -o -name tmp -prune -o -name work -prune -o -print > ¤È¼Â¹Ô¤¹¤ë¤È¡¢ > ¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê¤È¡¢¡Ö*.csv¡×°Ê³°¤Î¥Õ¥¡¥¤¥ë¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£ ¤³¤Î·ë²Ì¤¬¤¹¤Ç¤Ë¥Þ¥º¤¤¤ó¤Ç¤¹¤è¤Í? Á°²ó¤Î¤ï¤¿¤·¤Î²óÅú >>4763 68user ¤ÏŪ³°¤ì¤À¤Ã¤¿¤è¤¦¤Êµ¤¤¬¤·¤Þ¤¹¡£ºÇ½ªÅª¤Ë¤Ï°Ê²¼¤Î¤è¤¦¤Ë¤Ê¤ë¤Î¤Ç¤Ï¤Ê¤¤¤«¤È»×¤¤¤Þ¤¹¡£ % find /home/DATA/backup -name '*.csv' -mtime +30 -exec ls -l {} \; -o -name everyday -prune -o -name monthly -prune -o -name tmp -prune -o -name work -prune ¹½Â¤¤È¤·¤Æ¤Ï ¡¦[¥Õ¥¡¥¤¥ë̾¤¬ *.csv] AND [mtime ¤¬ +30] AND [-exec ls -l] OR ¡¦[¥Õ¥¡¥¤¥ë̾¤¬ everyday] AND [-prune] OR ¡¦[¥Õ¥¡¥¤¥ë̾¤¬ monthly] AND [-prune] OR (ά) ¤È¤Ê¤ê¤Þ¤¹¡£ ¤¿¤À¤· -exec ¤ä -prune ¤Ï¾ï¤Ë¿¿¤Ç¡¢¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤¹¤ë¡¦¥Ç¥£¥ì¥¯¥È¥ê¤ò²¼¹ß¤·¤Ê¤¤ ¤È¤¤¤¦ÉûºîÍѤòȯÀ¸¤µ¤»¤ë¤Î¤¬¼çÌÜŪ¤Ç¤¹¤Î¤Ç¡¢¤è¤êÊ¿°×¤Ë½ñ¤¯¤È ¡¦[¥Õ¥¡¥¤¥ë̾¤¬ *.csv] AND [mtime ¤¬ +30] ¤Ê¤é [-exec ls -l] ¤ò¼Â¹Ô OR ¡¦[¥Õ¥¡¥¤¥ë̾¤¬ everyday] ¤Ê¤é [-prune] ¤Ç²¼¹ßÍÞ»ß OR ¡¦[¥Õ¥¡¥¤¥ë̾¤¬ monthly] ¤Ê¤é [-prune] ¤Ç²¼¹ßÍÞ»ß OR (ά) ¤È¤Ê¤ê¤Þ¤¹¡£¤Ê¤ª¡¢¤³¤³¤Ç¤Î OR ¤Ï¡¢º¸ÊÕ¤¬¿¿¤Ê¤é±¦ÊÕ¤Ïɾ²Á¤·¤Ê¤¤¡¢ ¤È¤¤¤¦°ÕÌ£¤Ç¤¹¡£¤Þ¤¿¡¢OR ¤Î³ÆÍ×ÁǤνç½ø¤òÆþ¤ìÂؤ¨¤Æ¤â¡¢¤³¤Î¥±¡¼¥¹ ¤Ç¤ÏÌäÂꤢ¤ê¤Þ¤»¤ó (*.csv ¤È everyday ¤¬Î¾Êý¿¿¤Ë¤Ê¤ë¤³¤È¤Ï¤Ê¤¤¤Î¤Ç)¡£ ŵ·¿Åª¤Ê -prune ¤Î»È¤¤Êý¤ò¤Þ¤È¤á¤ë¤È°Ê²¼¤Î¤è¤¦¤Ë¤Ê¤ë¤È¹Í¤¨¤Þ¤¹¡£ - ÆÃÄê¤Î¥Ç¥£¥ì¥¯¥È¥ê°Ê³°¤Ë¤Ä¤¤¤Æ²¿¤« (-print) ¤ò¹Ô¤¦ ¢Í find . -name hoge -prune -o -print - ÆÃÄê¤Î¥Ñ¥¿¡¼¥ó¤Î¥Õ¥¡¥¤¥ë¤Ë²¿¤« (-ls) ¤ò¹Ô¤¦¤¬¡¢ÆÃÄê¥Ç¥£¥ì¥¯¥È¥ê°Ê²¼¤Ï½ü³°¤¹¤ë ¢Í find . -name \*.csv -ls -o -name hoge -prune - ÆÃÄê¤Î¥Ñ¥¿¡¼¥ó¤Î¥Õ¥¡¥¤¥ë¤Ë²¿¤« (-print) ¤ò¹Ô¤¦¤¬¡¢ÆÃÄê¥Ç¥£¥ì¥¯¥È¥ê¤À¤±¤Ï ½ü³°¤¹¤ë¡£¤¿¤À¤·ÆÃÄê¤Î¥Ñ¥¿¡¼¥ó¤Ë¤âÆÃÄê¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Ë¤â°ìÃפ·¤Ê¤¤¾ì¹ç¤Ï¡¢ Ê̤β¿¤«¤ò¹Ô¤¦ (-ls)¡£ ¢Í find . -name \*.csv -print -o -name hoge -prune -o -ls |
>>4837 68user ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ ÊÖ»öÃÙ¤ì¤Æ¤¹¤ß¤Þ¤»¤ó¡£ °ìÅÙ¡¢ÆâÍƤòÆɤó¤Ç¡¢³Îǧ¤·¤Æ¤ß¤Þ¤¹¡£ ¤½¤ì¤Ç¡¢ºÆÅÙ¡¢¼ÁÌ䤷¤Þ¤¹¡£ |
>>4837 68user ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ ´üÂÔ¤·¤¿·ë²Ì¤¬ÆÀ¤é¤ì¤Þ¤·¤¿¡£ |
¤Ï¤¸¤á¤Þ¤·¤Æ¡£ °Ê²¼¤Î¥Ú¡¼¥¸¤ò¸«¤Æ¼ÁÌ䤵¤»¤Æ¤¤¤¿¤À¤¤Þ¤¹¡£ http://x68000.q-e-d.net/~68user/net/http-1.html telnet¡ÊWindowsXP¤Ëɸ½à¤Ç¤Ä¤¤¤Æ¤¤¤¿¤â¤Î¤Ç¤¹¡Ë¤Ç¡¢ % telnet www.cs.gunma-u.ac.jp 80 ¤È¥³¥Þ¥ó¥É¤òÂǤäƤ⡢¥³¥Þ¥ó¥É¤¬Ìµ¸ú¤Ç¤¹¡¢¤È½Ð¤Æ¤·¤Þ¤¤¤Þ¤¹¡£ ¤³¤³¤ÇµÍ¤Þ¤Ã¤Æ¤·¤Þ¤Ã¤Æ¡¢Àè¤Ø¿Ê¤á¤Ê¤¤¤Ç¤¤¤Þ¤¹¡£ help¤ò¸«¤Æ¤ß¤Æ¡¢open¤«¤Ê¤È»×¤Ã¤¿¤Î¤Ç¤¹¤¬¡¢¤½¤ì¤Ç¤âÀܳ¤Ç¤¤Ê¤¤¾õ¶·¤Ç¤¹¡£ google¤Ç¸¡º÷¤·¤Æ¤â¤ß¤¿¤Î¤Ç¤¹¤¬¡¢Í×ÎΤòÆÀ¤Þ¤»¤ó¤Ç¤·¤¿¡¦¡¦¡¦ ²¿¤«²ò·èË¡¤Ï¤Ê¤¤¤Ç¤·¤ç¤¦¤«¡© ¥×¥í¥Ð¥¤¥À¤«¤é¤Ï¡¢ÆÃÊ̤Êproxy¤ò»È¤ï¤Ê¤¤¤ÈÂÌÌܤǤ¹¤È¤Ï¸À¤ï¤ì¤Æ¤¤¤Þ¤»¤ó¡£ ¤è¤í¤·¤¯¤ª´ê¤¤¤·¤Þ¤¹¡£ |
>>4840 ¤Þ¤ë¤³ telnet ¤Îµ¯Æ°¤Î»ÅÊý¤ò´ª°ã¤¤¤·¤Æ¤¤¤ë¤è¤¦¤Ë¸«¤¨¤Þ¤¹¡£ ¥¹¥¿¡¼¥È > ¤¹¤Ù¤Æ¤Î¥×¥í¥°¥é¥à > ¥¢¥¯¥»¥µ¥ê ¤Ç ¥³¥Þ¥ó¥É ¥×¥í¥ó¥×¥È ¤òµ¯Æ°¤·¤Þ¤¹¡£¤¹¤ë¤È¥¦¥£¥ó¥É¥¦¤¬³«¤ Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Documents and Settings\user> ¤Ê¤É¤Èɽ¼¨¤µ¤ì¤ë¤Ï¤º¤Ç¤¹¡£ ¤³¤³¤Ç telnet www.cs.gunma-u.ac.jp 80 ¤È¥¿¥¤¥×¤·¤Æ¤¯¤À¤µ¤¤¡£ http://x68000.q-e-d.net/~68user/net/win-telnet.html ¤Ë¤¢¤ë¤È¤ª¤ê¥¨¥³¡¼¥Ð¥Ã¥¯¤Ï¤µ¤ì¤Þ¤»¤ó¤¬¡¢ GET / HTTP/1.0(Enter) (Enter) ¤È¤¹¤ë¤È¼èÆÀ¤·¤¿ HTML ¤¬É½¼¨¤µ¤ì¤ë¤Ï¤º¤Ç¤¹¡£¡Ö(Enter)¡×¤Ï XP ¤Ç¤¢¤ì¤ÐÉáÄÌ¤Ë Enter ¥¡¼²¡²¼¤Ç¤¤¤±¤ë¤È»×¤¤¤Þ¤¹¡£ |
¤Ï¤¸¤á¤Þ¤·¤Æ¡£ °Ê²¼¤Î¥Ú¡¼¥¸¤ò»²¹Í¤Ë¤µ¤»¤Æ¤¤¤¿¤À¤¤Þ¤·¤Æ¡¢¼ÁÌ䤵¤»¤Æ¤¤¤¿¤À¤¤Þ¤¹¡£ http://x68000.q-e-d.net/~68user/webcgi/char-code-2.html °Ê²¼¤Î¤è¤¦¤Ëµ¡¼ï°Í¸ʸ»ú¤Î¥Á¥§¥Ã¥¯¤ò¤µ¤»¤Æ¤ß¤¿¤È¤³¤í ¡ÖÃúÌܡפȤ¤¤¦Ê¸»ú¤¬C3FA CCDC¤È¤Ê¤ê¡¢FACC¤¬90¶è¤Î¥Á¥§¥Ã¥¯¤Ë °ú¤Ã¤«¤«¤Ã¤Æ¤·¤Þ¤¤¤Þ¤·¤¿¡£ $fradrs = $_POST['adrs']; $check = mb_convert_encoding($fradrs,'EUC-JP'); if (ereg("\x8E[\xA0-\xDF]|[\xAD\xF9\xFA\xFB\xFC][\xA1-\xFE]", $check)) { ¤³¤¦¤¤¤Ã¤¿¾ì¹ç¤Ï¤É¤Î¤è¤¦¤ËÂн褷¤¿¤é¤è¤¤¤Ç¤·¤ç¤¦¤«¡£ ¤è¤í¤·¤¯¤ª´ê¤¤¤·¤Þ¤¹¡£ |
>>4842 yuki ¤½¤Î¥Ú¡¼¥¸¤Ç¤â¾Ò²ð¤·¤Æ¤¤¤Þ¤¹¤¬¡¢Ê¸»úñ°Ì¤Ç¥Þ¥Ã¥Á¤µ¤»¤ë¤¿¤á¤Ë http://www.din.or.jp/~ohzaki/perl.htm#JP_Match ¤È¤¤¤¦¹©Éפò¤·¤Æ¤¤¤Þ¤¹¡£ PHP ¤Ç¤¢¤ì¤Ð mb ·Ï¤Î´Ø¿ô¤ò»È¤¨¤Ðʸ»úñ°Ì¤ÇÀÚ¤ê½Ð¤»¤ë¤È»×¤¤¤Þ¤¹¤¬¡¢ ¤¤¤ï¤æ¤ëµ¡¼ï°Í¸ʸ»ú¤ËÂбþ¤·¤Æ¤¤¤ë¤«¤É¤¦¤«¤ï¤«¤é¤Ê¤¤¤Î¤Ç¤Þ¤º¤Ï »î¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤¡£Âбþ¤·¤Æ¤¤¤Ê¤±¤ì¤Ð¡¢¾åµ¤Î¤è¤¦¤Ê¤ä¤êÊý¤Ç 1ʸ»ú¤º¤Ä¼è¤ê½Ð¤¹É¬Íפ¬¤¢¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£ |
>>4843 68userÍÍ ¤´½õ¸À¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ ¤´°ÆÆ⤤¤¿¤À¤¤¤¿¥Ú¡¼¥¸¤ò»²¹Í¤Ë¤·¤Æ°Ê²¼¤Î¤è¤¦¤Ëµ½Ò¤·¤¿¤È¤³¤í ÁÛÄêÄ̤ê¤ËÆ°¤¯¤³¤È¤ò³Îǧ¤Ç¤¤Þ¤·¤¿¡£ $ascii = '[\x00-\x7F]'; $twoBytes = '[\x8E\xA1-\xFE][\xA1-\xFE]'; $threeBytes = '\x8F[\xA1-\xFE][\xA1-\xFE]'; $fradrs = $_POST['adrs']; $check = mb_convert_encoding($fradrs,'EUC-JP'); if (ereg("^($ascii|$twoBytes|$threeBytes)*(\x8E[\xA0-\xDF]|[\xAD\xF9\xFA\xFB\xFC][\xA1-\xFE])", $check)) { echo "¥Þ¥Ã¥Á¤·¤Þ¤·¤¿¡£\n"; mb·Ï¤Ï»ä¤Î̤½Ï¤µ¤æ¤¨¤«¤¦¤Þ¤¯Æ°ºî¤·¤Þ¤»¤ó¤Ç¤·¤¿¡Ä¡£ 68userÍÍ¡¢¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤·¤¿¡£ |
http://x68000.q-e-d.net/~68user/unix/pickup?freebsd-update freebsd-update¤Ç¤°¤°¤ë¤È¾å°Ì¤Ë°ú¤Ã¤«¤«¤ê¡¢ÇÒ¸«¤·¤Þ¤·¤¿¡£ ¡Ö¤¢¤¯¤Þ¤Ç 5.1-STABLE¤òÄɤ䫤±¤Æ¤¤¤ë¡×¤È¤¤¤¦µ½Ò¤¬¤¢¤ê¤Þ¤¹¤¬¡¢ ¤ª¤Ã¤«¤±¤Æ¤¤¤ë(¤¤¤¿)¤Î¤Ï'5.1 security fix branch'(RELENG_5_1)¤Ç¡¢ 5.1-STABLE¤È¤¤¤¦¥Ö¥é¥ó¥Á¤Ï¸ºß¤·¤Ê¤¤¤Ç¤¹¡£ ¤Þ¤¿'5-STABLE'¤â5.1-RELEASE¤ò¥Ö¥é¥ó¥Á¤·¤¿Ä¾¸å°Ê³°¤Ï 5.1ÁêÅö¤Ç¤Ï¤Ê¤«¤Ã¤¿¤ï¤±¤Ê¤Î¤Ç¡¢¤ä¤Ï¤ê5.1-STABLE¤È¤¤¤¦µ½Ò¤Ï ½¤Àµ¤µ¤ì¤¿¤Û¤¦¤¬Îɤ¤¤«¤È»×¤¤¤Þ¤¹¡£ |
>>4844 yuki ²¿Å٤⿽¤·Ìõ¤¢¤ê¤Þ¤»¤ó¡£ 4844¤Îµ½Ò¤Ç¤Ï¤¦¤Þ¤¯Æ°¤«¤Ê¤¤¤Ç¤¹¤Í¡Ä¡£ µ¡¼ï°Í¸ʸ»ú¤¬Ê¸Æ¬¤Ë¤¢¤ë¾ì¹ç¤Î¤ßÆ°ºî¤·¤Æ 2ʸ»úÌܰʹߤˤ¢¤ë¾ì¹ç¤Ë¤Ï¥Þ¥Ã¥Á¤·¤Æ¤¯¤ì¤Ê¤¤¤Ç¤¹¡£ Àµµ¬É½¸½¤Ë¤Ä¤¤¤Æ¤â¤¦¾¯¤·ÊÙ¶¯¤·¤Æ¤¤Þ¤¹¡£ |
>>4846 yuki ¥À¥á¤Ç¤¹¤«¤Í¤§? ¤¢¤Ã¤Æ¤¤¤ë¤è¤¦¤Êµ¤¤¬¤·¤Þ¤¹¤¬¡£ $_POST['adrs']¡¦$check ¤Î¥Ç¡¼¥¿¤òÌÀ¼¨¤¤¤¿¤À¤±¤ì¤Ð²¿¤«¤·¤é²óÅú¤Ç¤¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£ >>4845 2323 ¤è¤¯Íý²ò¤·¤Æ¤¤¤Ê¤¤¤Î¤Ç³Îǧ¤µ¤»¤Æ¤¤¤¿¤À¤¤¿¤¤¤Î¤Ç¤¹¤¬¡¢ ¡Ö¤¢¤¯¤Þ¤Ç 5.1-STABLE ¤òÄɤ䫤±¤Æ¤¤¤ë¤Ë²á¤®¤Ê¤¤¡× ¤ò ¡Ö¤¢¤¯¤Þ¤Ç '5.1 security fix branch' (RELENG_5_1) ¤òÄɤ䫤±¤Æ¤¤¤ë¤Ë²á¤®¤Ê¤¤¡× ¤È¤¹¤ì¤ÐÀµ³Î¤Êɽ¸½¤È¸À¤¨¤ë¤Ç¤·¤ç¤¦¤«¡£ |
¤Ï¤¸¤á¤Þ¤·¤Æ¡£ ÆÍÁ³¤Ç¤¹¤¬¡¢¤´¶µ¼ø¤¯¤À¤µ¤¤¡£ »ä¤Ïº£¡¢Âç³Ø£´Ç¯À¸¤Ç´¶È¸¦µæ¤ò¤·¤Æ¤¤¤ë¤Î¤Ç¤¹¤¬¡¢¥Í¥Ã¥È¥ï¡¼¥¯¥×¥í¥°¥é¥à¤òºî¤ëɬÍפ¬½Ð¤Æ¤¤Æ¤·¤Þ¤¤¤Þ¤·¤¿¡£ ¤Ç¤¹¤¬¡¢»ä¤Ï¥×¥í¥°¥é¥ß¥ó¥°¤ÏÁ´¤¯¤Î½é¿´¼Ô¤Ç¡¢¤É¤Î¸À¸ì¤ò»È¤¨¤ÐÎɤ¤¤Î¤«¡¢²¿¤«¤é»Ï¤á¤ì¤Ð¤¤¤¤¤Î¤«¤â¤è¤¯Ê¬¤«¤ê¤Þ¤»¤ó¡£ ¤É¤Ê¤¿¤«¥¢¥É¥Ð¥¤¥¹¤ä¡¢»²¹Í¤È¤Ê¤ê¤½¤¦¤Ê¥×¥í¥°¥é¥à¤ä¥µ¥¤¥È¤ò¶µ¤¨¤Æ失¤Þ¤»¤ó¤«¡© OS¤ÏKNOPPIX¤Ç¡¢¥¢¥É¥Û¥Ã¥¯¥â¡¼¥É(OLSR)¤Ç¤ÎÆ°²è¤ÎžÁ÷¤ò¤·¤¿¤¤¤Ç¤¹¡£ žÁ÷¤µ¤¨¤Ç¤¤ì¤Ð¤¤¤¤¤È¤Î¤³¤È¤Ê¤Î¤Ç¡¢¥×¥í¥°¥é¥à¼«ÂΤϴÊñ¤Ê¤â¤Î¤Ç¤¤¤¤¤è¤¦¤Ç¤¹¡£ ¾ì°ã¤¤¤Ê¼ÁÌ䤫¤â¤·¤ì¤Þ¤»¤ó¤¬¤è¤í¤·¤¯¤ª´ê¤¤¤¤¤¿¤·¤Þ¤¹¡£ |
>>4848 yino »ÄÇ°¤Ê¤¬¤éʹ¤¤¤¿»ö¤â¤Ê¤¤OS¤Ç¤¹¤Î¤Ç¡¢¤ªÎϤˤʤì¤Þ¤»¤ó¡£ ¤¿¤À¡¢¤³¤ÎÍͤʾì¹ç¡¢¤Ò¤¿¤¹¤é¸¡º÷¥µ¥¤¥È¤Ç¥¡¼¥ï¡¼¥É¤òÆþ¤ì¤Æ¸¡º÷¤·¤Æ¤ß¤Æ¤Ï¤¤¤«¤¬¤Ç¤¹¤«¡© ½¢¿¦¤·¤Æ¤â¡¢¤³¤ÎÊÕ¤ê¤ÏÊѤï¤ê¤Þ¤»¤ó¡£ ¤Þ¤º¤Ï¡¢ÊÒ¤Ãü¤«¤é¸¡º÷¤·¤Æ¼«Ê¬¤ÎÌÜŪ¤È¤·¤Æ¤¤¤ë¾ðÊ󤬺ܤäƤ¤¤ë¥µ¥¤¥È¤òõ¤·¤Æ¤ß¤Þ¤·¤ç¤¦¡£ |
>>4849 ¥Ð¥ó¥¬¡¼¥É OLSR ¤Ï¥×¥í¥È¥³¥ë¤Î¤è¤¦¤Ç¤¹¡£ >>4848 yino ¤ï¤¿¤·¤Ê¤é 1. ¤Þ¤ï¤ê¤Ë¸À¸ì¤Îͼ±¼Ô¤¬¤¤¤ë¤« 2. ¤½¤Î¸À¸ì¸þ¤±¤Î¥Í¥Ã¥È¥ï¡¼¥¯¥×¥í¥°¥é¥ß¥ó¥°´ØÏ¢¤Î½ñÀÒ¤¬½ÐÈǤµ¤ì¤Æ¤¤¤ë¤« 3. ¥Í¥Ã¥È¥ï¡¼¥¯¥×¥í¥°¥é¥ß¥ó¥°¸þ¤¤« 4. ¥×¥í¥°¥é¥ß¥ó¥°½é¿´¼Ô¤¬°·¤¤¤ä¤¹¤¤¸À¸ì¤« ¤È¤¤¤¦´ÑÅÀ¤Ç¹Í¤¨¤Þ¤¹¡£ 1 ¤Ï¡¢¤Þ¤ï¤ê¤ò¸«ÅϤ·¤Æ¤¯¤À¤µ¤¤ (Java ¤¬Â¿¤¤¤Î¤Ç¤Ï¤Ê¤¤¤«¤ÈÁÛÁü¤·¤Þ¤¹¤¬)¡£ ¤³¤ì¤¬ºÇ½ÅÍפÀ¤È»×¤¤¤Þ¤¹¡£ 2 ¤Ï¡¢Java ¤¬°ìÈÖ¡¢¼¡ÅÀ¤¬ Perl ¤Ç¤·¤ç¤¦¤«¡£PHP¡¦Ruby ¤Ï¤³¤ÎÅÀ¤Ï¼å¤¤¡£ 3 ¤Ï¡¢ËܼÁŪ¤Ë¤Ï¤É¤Î¸À¸ì¤Ç¤âƱ¤¸¤Ç¤·¤ç¤¦¤¬¡¢PHP ¤Ê¤É¤Ï̵Â̤˥ϥޤê¤ä¤¹¤½¤¦¤Ê µ¤¤¬¤·¤Þ¤¹¡£ 4 ¤Ï¡¢¤Þ¤¡ Java ¤Ç¤Ï¤Ê¤¤¤«¤È¡£ ¸Ä¿ÍŪ¤Ë¤Ï¡¢Java ¤¬¥¤¥Á¥ª¥·¡¢¼¡ÅÀ¤¬ Perl ¤Ç¤¹ (¼«Ê¬¤¬½ñ¤¯¤Ê¤é Perl ¤« Ruby)¡£ |
>>4850 ¥Ð¥ó¥¬¡¼¥É¤µ¤ó¡¢ >>4849 68user¤µ¤ó ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤·¤¿¡£ ¤È¤ê¤¢¤¨¤º¤Ï¼þ¤ê¤Î¿Í¤«¤éÏäòʹ¤¤¤Æ¤ß¤¿¤¤¤È»×¤¤¤Þ¤¹¡£ ¤¢¤È¤ÏJava¤ÎËܤòÆɤó¤Ç¤¤¤¤¿¤¤¤È»×¤¤¤Þ¤¹¡£ ¤Þ¤¿Êɤˤ¢¤¿¤Ã¤¿¤È¤¤Ï¤³¤³¤ËÍè¤ë¤È»×¤¤¤Þ¤¹¤Î¤Ç¡¢¤è¤í¤·¤¯¤ª´ê¤¤¤·¤Þ¤¹¡£ |
¤Ï¤¸¤á¤Þ¤·¤Æ¡£ ¤¤¤¤Ê¤ê¤Ç¤¹¤¬¶µ¤¨¤Æ¤Û¤·¤¤¤³¤È¤¬¤¢¤ê¤Þ¤¹¡£ Âç³Ø¤Î²ÝÂê¤Ç¥µ¡¼¥Ð¤Î¸ºß¤¹¤ë¥Þ¥·¥ó¤Î¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê¤Ë¤ª¤±¤ë¥Õ¥¡ ¥¤¥ë°ìÍ÷¤òɽ¼¨¤¹¤ë¡£ ¡ãLIST¡ä¤ÈÂǤÁ¹þ¤à¤È¥Õ¥¡¥¤¥ë¤Î°ìÍ÷¤òɽ¼¨¤¹¤ë ¡ãGET ¥Õ¥¡¥¤¥ë̾¡äÂǤÁ¹þ¤à¤È¡¢¥Õ¥¡¥¤¥ë¤ÎÆâÍƤòɽ¼¨¤¹¤ë ¡ãPUT ¥Õ¥¡¥¤¥ë̾¡ä¤Ç¥Õ¥¡¥¤¥ë¤ò¥¢¥Ã¥×¥í¡¼¥É¤¹¤ë¡£ ¡ãQUIT>¤ÈÂǤÁ¹þ¤à¤È¥µ¡¼¥Ó¥¹½ªÎ»¡£¤È¸À¤¦¥×¥í¥°¥é¥à¤òºî¤Ã¤Æ¤¤¤¿¤Î¤Ç¤¹¤¬ ¤¦¤Þ¤¯¼Â¹Ô¤Ç¤¤Þ¤»¤ó¡£¤É¤³¤¬´Ö°ã¤Ã¤Æ¤¤¤ë¤«¶µ¤¨¤Æ¤¤¤¿¤À¤±¤Þ¤»¤ó¤«¡£ #include <netdb.h> #include <stdio.h> #include <fcntl.h> #define BUFMAX 45 #define PORT_NO 10092 #define Err(x) {fprintf(stderr,"server- ");perror(x); exit(0);} static char rmsg[10], smsg[BUFMAX]; static int sofd, nsofd; static struct sockaddr_in sv_addr, cl_addr; static struct hostent *shost; static char shostname[100]; int msgpro(void); int main(int argc, char **argv) { int cadlen; DIR *dirHandle; struct dirent *dirEntry; dirHandle=opendir("."); if(dirHandle){ while(0!=(dirEntry=readdir(dirHandle))){ puts(dirEntry->d_name); } closedir(dirHandle); } sofd = socket(AF_INET, SOCK_STREAM, 0); if(sofd < 0) Err("socket"); if(gethostname(shostname, sizeof(shostname)) < 0) Err("gethostname"); shost = gethostbyname(shostname); if(shost == NULL) Err("gethostbyname"); bzero((char *)&sv_addr, sizeof(sv_addr)); sv_addr.sin_family = AF_INET; sv_addr.sin_port = htons(PORT_NO); memcpy((char *)&sv_addr.sin_addr, (char *)shost -> h_addr, shost -> h_length); if (bind(sofd,(struct sockaddr *)&sv_addr, sizeof(sv_addr)) < 0) Err("bind"); if(listen(sofd, 1) == -1) Err("listen"); while(1){ cadlen = sizeof(cl_addr); if((nsofd = accept(sofd, (struct sockaddr *)&cl_addr, &cadlen)) <0) Err("accept"); if(fork() == 0) if(msgpro()==-1){ close(nsofd); printf("END SERVER\n"); if(shutdown(nsofd, 2) < 0) Err("shutdown"); close(nsofd); exit(1); } close(nsofd); } } int msgpro(void) { int cc, cadlen,nbyte; FILE *fp; DIR *dp; struct dirent *p; char *tmp[100]; int i,f; i=0; close(sofd); if(recv(nsofd, rmsg, 10, 0) < 0){ perror("recv");} printf("%s\n",rmsg); if(strcmp(rmsg,"QUIT:")==0){ return -1;} if(strcmp(rmsg,"LIST:")==0){ printf("LSIT:\n"); dp=opendir("./"); while((p=readdir(dp))!=NULL){ tmp[i]=p->d_name; strcat(tmp[i],"\n"); i++; } closedir(dp); tmp[i]="."; for(f=2;f<=i;f++){ nbyte = strlen(tmp[f]); if(send(nsofd, tmp[f], nbyte, 0) < 0) perror("send"); } }else{ int i; char filename[10]; if(strncmp(rmsg,"GET:",4)==0){ printf("%s\n",rmsg); for(i=4;i<=strlen(rmsg);i++){ filename[i-4]=rmsg[i]; } fp = fopen(filename,"r"); while(fgets(smsg, BUFMAX, fp) != NULL){ nbyte = strlen(smsg); if(send(nsofd, smsg, nbyte, 0) < 0) perror("send"); } fclose(fp); }else{ if(strcmp(rmsg,"QUIT:")==0){ printf("shutdown\n"); return -1; }else{ printf("Command not Fountd.\n"); strcpy(smsg,"Command not Found.\n."); nbyte = strlen(smsg); if(send(nsofd, smsg, nbyte, 0) < 0) perror("send"); } } } if(shutdown(nsofd, 2) < 0) Err("shutdown"); close(nsofd); exit(0); } |
>>4852 aki > ¤¦¤Þ¤¯¼Â¹Ô¤Ç¤¤Þ¤»¤ó¡£ ²¿¤ò¤É¤¦¤·¤¿¤é¤É¤¦¤Ê¤ë¤Î¤«ÌÀ¼¨¤·¤Æ¤¯¤À¤µ¤¤¡£ |
>>68user¤µ¤ó ¤¹¤ß¤Þ¤»¤ó¡£ ¼Â¹Ô¤·¤¿¸å¤Ë£Ì£É£Ó£Ô¡¢GET ¥Õ¥¡¥¤¥ë̾¡¢PUT ¥Õ¥¡¥¤¥ë̾¡¢QUIT¤Ê¤ÉÂǤÁ¹þ¤ó¤Ç¤â¤Ê¤Ë¤â ¤ª¤¤Ê¤¤¤ó¤Ç¤¹¡£ |
>>4854 aki Ä󼨤¤¤¿¤À¤¤¤¿¥×¥í¥°¥é¥à¤Ï¥µ¡¼¥Ð¦¤Î¥×¥í¥°¥é¥à¤Ç¤¢¤Ã¤Æ¡¢ 1. ¥µ¡¼¥Ð¤ò¼Â¹Ô¤¹¤ë 2. ÊÌÅÓ telnet ¥³¥Þ¥ó¥É¤Ê¤É¤òÍѤ¤¤Æ¥¯¥é¥¤¥¢¥ó¥È¦¤«¤é¥µ¡¼¥Ð¤Ë¥¢¥¯¥»¥¹ (telnet localhost 10092 ¤Ê¤É) 3. ¤½¤³¤Ç LIST ¤Ê¤É¤ò¥¿¥¤¥×¤¹¤ë ¤È¤¤¤¦¤â¤Î¤Ç¤¹¤¬¡¢¤½¤ì¤ÏÍý²ò¤·¤¿¾å¤Ç¤Î¼ÁÌä¤Ç¤·¤ç¤¦¤«? ¤â¤·Íý²ò¤·¤Æ¤¤¤Ê¤¤¤Î¤Ç¤¢¤ì¤Ð¡¢¤Þ¤º¤Ï¤Þ¤ï¤ê¤Î¿Í¤Ëʹ¤¯¤È¤«¡¢»ñÎÁ¤ò ¤â¤Ã¤ÈÆɤà¤Ê¤É¤·¤Æ³µÇ°¤òÍý²ò¤·¤Æ¤«¤é¤Ç¤Ê¤¤¤È¸úΨ¤¬°¤¤¤È»×¤¤¤Þ¤¹¡£ ¥×¥í¥°¥é¥à¼«ÂΤˤĤ¤¤Æ¤Ï¡¢telnet ¾å¤«¤é LIST:(Ctrl-D) ¤Ê¤É¤ÈÊѤÊÁ÷¿®¤Î»ÅÊý¤ò¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤·¤¿¤¬¡¢°ì±þÆ°¤¯¤è¤¦¤Ç¤¹¡£ |
>>4855 68user¤µ¤ó ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ ¤è¤¯Íý²ò¤Ç¤¤Æ¤Ê¤«¤Ã¤¿¤ß¤¿¤¤¤Ê¤Î¤Ç¤â¤¦¾¯¤·Í§Ã£¤Ëʹ¤¤¤Æ¤ß¤Þ¤¹ |
º£ÅÙÂç³Ø¤Î²ÝÂê¤Ç¥Þ¥ë¥Á¥¹¥ì¥Ã¥É¥µ¡¼¥Ð¤òºîÀ®¤¹¤ë¤³¤È¤Ë¤Ê¤Ã¤¿¤Î¤Ç¡¢ http://x68000.q-e-d.net/~68user/net/echo-4.html ¤ò»²¹Í¤Ë¥Þ¥ë¥Á¥¹¥ì¥Ã¥É¥µ¡¼¥Ð¤Ë¤Ä¤¤¤ÆÊÙ¶¯¤·¤Æ¤¤¤ë¼Ô¤Ç¤¹¡£ ¤½¤³¤Ç¡¢ÁÇËѤ˵¿Ì䤬¤¢¤ë¤Î¤Ç¤¹¤¬¡¢ ¤³¤Î¥Ú¡¼¥¸¤Ë½ñ¤¤¤Æ¤¢¤ëÆâÍƤϡ¢ËÜÅö¤Ë¥Þ¥ë¥Á¥¹¥ì¥Ã¥É¤Ê¤Î¤Ç¤·¤ç¤¦¤«¡© ¥Þ¥ë¥Á¥¹¥ì¥Ã¥É¤È¤¤¤¦¤È½èÍý¤¬Ê¿¹Ô¤·¤Æ¹Ô¤ï¤ì¤ë¤È¤¤¤¦Ç§¼±¤Ê¤Î¤Ç¤¹¤¬¡¢ ¤³¤Î¼ÂÁõ¤Ç¤Ï¿¿ô¤Î¥½¥±¥Ã¥È¤«¤é¥Ç¡¼¥¿¤¬ÅþÃ夷¤¿¥½¥±¥Ã¥È¤ò½ç¼¡ÁªÂò¤·¤Æ ½èÍý¤ò¤¹¤ë¡¢¤È¤¤¤¦¤è¤¦¤Ë¸«¤é¤ì¤ë¤Î¤Ç¤¹¤¬¡¦¡¦¡¦¡£ ¤³¤ì¤Ï¥Þ¥ë¥Á¥¹¥ì¥Ã¥É¥µ¡¼¥Ð¤È¸Æ¤ó¤Ç¤â¤è¤í¤·¤¤¤Î¤Ç¤·¤ç¤¦¤«¡© |
HTTP1.1¤ÇKeepAlive¤ÇHTTPS¥µ¡¼¥Ð¤ËÀܳ¤·¤¿¾ì¹ç¤Ë¡¢¥µ¡¼¥Ð¤«¤é¤Î ¥ì¥¹¥Ý¥ó¥¹¤ÎŤµ¤¬Ã»¤¤(500¥Ð¥¤¥È°Ê²¼ÄøÅÙ)¾ì¹ç¡¢¥¯¥é¥¤¥¢¥ó¥È¤¬ ¥¿¥¤¥à¥¢¥¦¥È¤È¤Ê¤ê¥µ¡¼¥Ð¤«¤é¤Î¥ì¥¹¥Ý¥ó¥¹¤¬Æɤá¤Þ¤»¤ó¡£ ¥µ¡¼¥Ð¡¦¥¯¥é¥¤¥¢¥ó¥È¶¦¤ËFEDORA¤ò»ÈÍѤ·¤Æ¤ª¤ê¡¢¥¯¥é¥¤¥¢¥ó¥È¤Ï TCP/IP¤Î¥½¥±¥Ã¥È¡¢OpemSsl¤ò»È¤Ã¤ÆºîÀ®¤·¤Æ¤¤¤Þ¤¹¡£ ÂнèÊýË¡¤Ï²¿¤«¤¢¤ê¤Þ¤¹¤Ç¤·¤ç¤¦¤«¡© |
>>4857 aya ¤É¤¦¤Ê¤ó¤Ç¤·¤ç¤¦¤«¡£°ÊÁ°¤ËƱÍͤλØŦ¤¬¤¢¤Ã¤¿¾ì¹ç¤Ï >>3223 int >>3224 68user >>3226 Netboy >>3227 68user ¤È¤¤¤¦¤È¤³¤í¤Ç»ß¤Þ¤Ã¤Æ¤¤¤Þ¤¹¡£¤½¤Î¸å¡¢¤ï¤¿¤·¤ÎÃ챤ÏÁý¤¨¤Æ¤¤¤Ê¤¤¤¿¤á¡¢ ¤Þ¤Àµ¿Ìä¤Î¤Þ¤Þ¤Ç¤¹¡£ >>4858 masa ¥½¡¼¥¹¤òÄ󼨴ꤤ¤Þ¤¹¡£ ¤Ê¤ª¡¢ËÜÆü¤è¤ê¿ôÆü¡Á¿ô½µ´Ö¤Î´Ö¡¢ÊÖ»ö¤¬¤·¤Ë¤¯¤¤¾õ¶·¤Ë¤Ê¤ê¤½¤¦¤Ê¤Î¤Ç¡¢ ¤´Î»¾µ¤¯¤À¤µ¤¤¡£ |
>>4859 68user ¤µ¤ó ²ò·è¤·¤Þ¤·¤¿¡£ Æɤ߹þ¤â¤¦¤È¤·¤Æ¤¤¤ë¥Ð¥Ã¥Õ¥¡¥µ¥¤¥º¤¬Â礤¹¤®¤¿¤è¤¦¤Ç¤¹¡£ |
remsh¤Ë¤Ä¤¤¤ÆÃΤäƤ¤¤ëÊý¤Ï¤´¶µ¼ø´ê¤¤¤Þ¤¹¡£ ´Ä¶:HP-UX 11 º£¥·¥§¥ë¤òºîÀ®¤·¤Æ¤¤¤ë¤Î¤Ç¤¹¤¬¡¢¤¢¤ëAP¥µ¡¼¥Ð¤Î¥·¥§¥ë¤ÎÃæ¤Çremsh¤ò¤·¤Æ¾¤ÎDB¥µ¡¼¥Ð¤Ç¥ß¥É¥ë¤Î¥³¥Þ¥ó¥É¡ÊHiRDB¤Î¥¹¥±¥¸¥å¡¼¥é¡Ë ¤Î·ë²Ì¤È¤½¤Î¥ê¥¿¡¼¥óÃͤÎɸ½à½ÐÎϤò¥Õ¥¡¥¤¥ë¤ËÅǤ½Ð¤¹¤È¸À¤¦½èÍý¤ò¤·¤Æ¤¤¤Þ¤¹¡£ $USER_A¤Ç¥·¥§¥ë¤ò¼Â¹Ô¡ÊHOST=DB¥µ¡¼¥Ð¡Ë # remsh $HOST -l $USER_B -n ". .profile 2>&- ; \$DIR/bin/HiRDB¤Î¥³¥Þ¥ó¥É ; echo \$? " > $FILE ¤³¤Î¾ì¹ç³«È¯´Ä¶¤Ç¤Ï¤¦¤Þ¤¯É¸½à½ÐÎϤηë²Ì¤ò¥Õ¥¡¥¤¥ë¤ËÅǤ½Ð¤»¤ë¤Î¤Ç¤¹¤¬¡¢ ¸ÜµÒËÜÈִĶ¤Ç¤Ï¤¦¤Þ¤¯¤¤¤¤Þ¤»¤ó¡£ ·ë²Ì¤ò¸«¤ë¸Â¤ê¡¢.profile¤¬Æɤ߹þ¤á¤Æ¤Ê¤¤¡¢¤Þ¤¿¤Ï¥ß¥É¥ë¤Î¥³¥Þ¥ó¥É¤¬Æɤ߹þ¤á¤Æ¤¤¤Ê¤¤¡¢¤È¸À¤Ã¤¿´¶¤¸¤Ç¤¹¡£ ¤Á¤Ê¤ß¤Ë¡¢DB¥µ¡¼¥Ð¦¤Î$USER_B¤Î.rhosts¤Ë¤Ï[AP¥µ¡¼¥Ð $USER_A]¤¬µºÜ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£ ¤³¤ÎºÝremsh¤Î¸å¤Î¥³¥Þ¥ó¥É¤¬¼Â¹Ô¤µ¤ì¤Æ¤¤¤Ê¤¤¸¶°ø¤È¤·¤Æµ¿¤ï¤·¤ÅÀ¤ò¶µ¤¨¤Æ¤¤¤¿¤À¤¤¿¤¤¤Ç¤¹¡£ ¤¿¤È¤¨¤Ð.profile¤ËÌäÂꤢ¤ê¤Ê¤É¡Ä¡£ ¤ª´ê¤¤¤¤¤¿¤·¤Þ¤¹¡£ |
>>4861 toshi7 »×¤¤¤Ä¤¯¤Î¤Ï - remsh ¸å¤Î¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê¤¬°Û¤Ê¤ë - ¥í¥°¥¤¥ó¸å¤Î´Ä¶ÊÑ¿ô¤¬°Û¤Ê¤ë - ½ÐÎÏÀè¤Î¥Ñ¡¼¥ß¥Ã¥·¥ç¥ó¤¬°Û¤Ê¤ë - HiRDB ¤Î¥³¥Þ¥ó¥É¤Î¾ì½ê¤¬°Û¤Ê¤ë - HiRDB ¤Î¥³¥Þ¥ó¥É¤¬¥¨¥é¡¼¤È¤Ê¤Ã¤Æ¤¤¤ë ¢ª HiRDB ¤ò¼Â¹Ô¤¹¤ë¤Î¤Ç¤Ï¤Ê¤¯¡¢Å¬Åö¤Ê¼«ºî¥×¥í¥°¥é¥à¤ò¼Â¹Ô¤·¡¢ µ¯Æ°¤µ¤ì¤Æ¤¤¤ë¤«¤É¤¦¤«¥í¥°Åù¤ËµÏ¿¤¹¤ë - ɸ½à¥¨¥é¡¼½ÐÎϤòÊĤ¸¤Æ¤¤¤ë¤Î¤Ç¡¢HiRDB ¤Îɸ½à¥¨¥é¡¼½ÐÎϤؤΠ½ÐÎϤ¬½ÐÎϤµ¤ì¤Æ¤¤¤Ê¤¤ (¤â¤·¤¯¤Ï write(2) ¤Ç¥¨¥é¡¼¤Ë¤Ê¤ë¤¿¤á ÅÓÃæ¤Ç¤³¤±¤Æ¤¤¤ë) ¤¯¤é¤¤¤Ç¤·¤ç¤¦¤«¡£ |
>>4862 68user 68user¤µ¤ó ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ Ä´ºº¤ò¿Ê¤á¤Æ¤¤¤ë¤È¤³¤í¤Ç¤¹¤¬¡¢HiRDB¤Î¥³¥Þ¥ó¥É¤Ç¥¨¥é¡¼¤Ë¤Ê¤Ã¤Æ¤¤¤ë²ÄǽÀ¤¬Âç¤Ç¤¹¡£ ¤Þ¤¿¡¢º£½µorÍè½µÃæ¤Ë¤âremsh¤Î¥Æ¥¹¥È¤¬¤Ç¤¤ëͽÄê¤Ç¤¹¤Î¤Ç¡¢ # remsh $HOST -l $USER_B -n ". .profile 2>&- ; \$DIR/bin/HiRDB¤Î¥³¥Þ¥ó¥É ; echo \$? " > $FILE 2>&1 ¤Çɸ½à¥¨¥é¡¼¤ò½ÐÎϤ·¤Æ¤ß¤Þ¤¹¡£ ¤Á¤Ê¤ß¤Ë¥µ¡¼¥Ð¦¤Î"last | more"¤Î·ë²Ì¤ò¸«¤ë¸Â¤êremsh¼«ÂΤÏÆϤ¤¤Æ¤¤¤ë¤è¤¦¤Ç¤·¤¿¡£ ¤Þ¤¿¡¢¥Æ¥¹¥È¤Î·ë²ÌÉÔÌÀÅÀ¤¬¤¢¤ê¤Þ¤·¤¿¤é¡¢¼ÁÌ䤵¤»¤Æ¤¤¤¿¤À¤¤¤Æ¤â¤è¤í¤·¤¤¤Ç¤·¤ç¤¦¤«¡© µ¹¤·¤¯¤ª´ê¤¤¤·¤Þ¤¹¡£ |
¾¯¤·¤º¤Ä¤Ç¤¹¤¬ UNIX¤ÎÉô²° http://x68000.q-e-d.net/~68user/unix/ ¤Î³Æ¥³¥ó¥Æ¥ó¥Ä¤ò¼ê»Ï¤á¤Ë¡¢Web Á´ÂΤΥǥ¶¥¤¥ó¤òÊѹ¹¤·¤Æ¤¤¤¤Þ¤¹¡£ ¤â¤·ÉÔ¶ñ¹ç¤¬¤¢¤ì¤Ð¶µ¤¨¤Æ¤¤¤¿¤À¤±¤ì¤Ð¹¬¤¤¤Ç¤¹¡£ |
68user¤µ¤Þ¡£¤¤¤Ä¤â¡¢½é¿´¼Ô¤ËͤêÆñ¤¤¥µ¥ó¥×¥ë¤ò¤¿¤¯¤µ¤ó¤´Ä󶡤¤¤¿¤À¤ ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ HttpClientHttpURLConnection¤òÁö¤é¤»¤¿¤È¤³¤í¡¢¥Ö¥é¥¦¥¶¤Ç¸«¤ë¤ÈÆüËܸì¤ÎÉôʬ ¤¬¡¢Ê¸»ú²½¤±¤·¤Æ¤¤¤Þ¤¹¡£yahoo¤Î¥Ú¡¼¥¸¤ò»Ï¤á¡¢¤¤¤¯¤Ä¤«»î¤·¤¿¤Î¤Ç¤¹¤¬Æ±¤¸ ¾õÂ֤Ǥ¹¡£²½¤±¤Ê¤¤¤è¤¦¤Ë¤¹¤ë¤Ë¤Ï¤É¤¦¤·¤¿¤éÎɤ¤¤Î¤Ç¤·¤ç¤¦¤«¡© ¤ªË»¤·¤¤Ã液½Ì¤Ç¤¹¤¬¡¢¤É¤Ê¤¿¤«¤´¶µ¼¨²¼¤µ¤¤¡£ |
>>4867 Ponta http://x68000.q-e-d.net/~68user/net/java-http-url-connection-1.html ¤Ç¤¹¤è¤Í? ¡Ö¥Ö¥é¥¦¥¶¤Ç¸«¤ë¤È¡×¤Î°ÕÌ£¤¬¤ï¤«¤ê¤Þ¤»¤ó¡£¼Â¹ÔÎã¤Ë¤¢¤ë¤È¤ª¤ê¡¢ ¥³¥Þ¥ó¥É¥é¥¤¥ó¤«¤é¤Î¼Â¹Ô¤òÁ°Äó¤È¤·¤Æ¤¤¤Þ¤¹¡£ |
½é¤á¤Æ¼ÁÌ䤵¤»¤Æ¤¤¤¿¤À¤¤Þ¤¹¡£ 12·î¤«¤éËܳÊŪ¤ËUNIX¤ÎÊÙ¶¯¤ò»Ï¤á¤Æ¡¢¸½ºß¤ÏHP-UX¤Î¶È̳¤Ë½¢¤¤¤Æ¤ª¤ê¤Þ¤¹¡£ »²¹Í»ñÎÁ¤ò¹ØÆþ¤·¤¿¤ê¡¢net¤ÇÄ´¤Ù¤ë¤â¤É¤¦¤·¤Æ¤â¸«¤Ä¤«¤é¤Ê¤¤¡£¡£ ¼ÁÌäÆâÍÆ¡§ ¥Õ¥¡¥¤¥ë¥µ¥¤¥º¤òbyte¤Çɽ¼¨¤µ¤»¤ë¥³¥Þ¥ó¥É¤¬ÃΤꤿ¤¤¤Ç¤¹¡£ ¥Ç¡¼¥¿°Ü¹Ôºî¶È¤ò¤·¤Æ¤¤¤ë¤Î¤Ç¡¢°Ü¹ÔÁ°¥Þ¥·¥ó¤È°Ü¹Ô¸å¤Î¥Þ¥·¥ó¤Ç¤Î ÍÆÎÌ¥Á¥§¥Ã¥¯¤ò¤·¤Ê¤¯¤Æ¤Ï¤¤¤±¤Ê¤¯¤Æ¡£¡£¡£ ÂçÊѽéÊâŪ¼ÁÌä¤Ç¿½¤·Ìõ¤Ê¤¤¤Î¤Ç¤¹¤¬¡¢¤´¶µ¼ø²¼¤µ¤¤¡£ ¢¨HP-UX¡¡11i¤ò»ÈÍѤ·¤Æ¤ª¤ê¤Þ¤¹¡£ |
>>4869 ¤·¤â ¤è¤¯¤ï¤«¤ê¤Þ¤»¤ó¤¬ ls(1) ¤Î·ë²Ì¤Ï»È¤¨¤Ê¤¤¤ó¤Ç¤·¤¿¤Ã¤±? ¤¢¤È¤Ï cksum¡¦wc¡¦find ¤È¤«¡£¤½¤ì°Ê³°¤Ê¤é awk¡¦perl ¤¢¤¿¤ê¤Ç¤·¤ç¤¦¤«¡£ cksum http://docs.hp.com/ja/B2355-60129/cksum.1.html wc http://docs.hp.com/ja/B2355-60129/wc.1.html find . -ls http://docs.hp.com/ja/B2355-60129/find.1.html |
>>4870 68user ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ ¥Õ¥¡¥¤¥ë¸Ä¡¹¤Î¥µ¥¤¥º¤Ïcksum¤äwc¤Ç³Î¤«¤Ë³Îǧ¤Ç¤¤Þ¤·¤¿¡£ ¥Ç¥£¥ì¥¯¥È¥ê¤Î¥µ¥¤¥º¤Ïbyteɽ¼¨¤µ¤»¤ë»ö¤ÏÉÔ²Äǽ¤Ê¤Î¤Ç¤·¤ç¤¦¤«¡© du¤ò»ÈÍѤ·¤Þ¤·¤¿¤¬¡¢KB¤À¤Ã¤¿¤Î¤È¥Ö¥í¥Ã¥¯Ã±°Ì¤Ç¤·¤¿¡£ |
>>4871 ¤·¤â HP-UX ¤Ë¸Â¤é¤º¡¢du ¤Ç¤Ï¥Ö¥í¥Ã¥¯¥«¥¦¥ó¥Èµ¡Ç½¤·¤«¤Ê¤¤¤È»×¤¤¤Þ¤¹¡£ http://sonic64.com/2004-05-26.html ¤Î¤è¤¦¤Ë¼«Á°¤Ç¥«¥¦¥ó¥È¤¹¤ë¤·¤«¤Ê¤¤¤Ç¤·¤ç¤¦¡£ |
cygwin¤Çbash¡¡not¡¡find¡¡¡§bash.exe¤È¤¤¤¦¥¨¥é¡¼¤¬¤Ç¤ó¤À¤±¤É¤É¤¦¤¹¤ì¤Ð ¤¤¤¤¤«¶µ¤¨¤í¡ª¡ª¡ª¡ª¡ª¤É¡¼¤»²Ë¤À¤í¡ª¥Ë¡¼¥È½ô·¯¡¢²¶ÍͤÎÊѤï¤ê¤ËÄ´¤Ù¤í¡ª ¥Ñ¥¹¤ÎÀßÄê¤Ï¤·¤Æ¤¢¤ë¡£ ²¶¤â²Ë¤¸¤ã¤Ê¤¤¤«¤é£µÊ¬¤ä¤ë¤Ç¤¹¤°Ä´¤Ù¤ÆÊÖ¿®¤·¤í¡£µ®Íͤé¤Ïé×Ãî¤À¡£ ./bashrcÅù¤â´°àú ¤·¤«¡¼¡¼¡¼¡¼¤·Æ°¤«¤ó¡£³Ú¾¡¤À¤Æ¡£ |
¤ªÀ¤Ïäˤʤê¤Þ¤¹¡£ ¼ÁÌä¤Î¤È¤¤À¤±¸½¤ì¤Æ¥¹¥ß¥Þ¥»¥ó¡£ Perl ¤Ç¡¢ filename -> title aaa.html -> aaa¤Ë¤Ä¤¤¤Æ bbb.html -> bbb¤Ë¤Ä¤¤¤Æ ccc.html -> ccc¤Ë¤Ä¤¤¤Æ ¤ß¤¿¤¤¤Ê¥¿¥Ö¶èÀÚ¤ê¤Î¥Æ¥¥¹¥È¤òÆɤó¤Ç½èÍý¤¹¤ë¤È¤¡¢¥«¥ó¥¿¥ó¤Ë¤Ï while (<>) { ($filename, $title) = <>; } ¤Î¤è¤¦¤Ë¤¹¤ë¤È»×¤¤¤Þ¤¹¤¬¡¢£±¹ÔÌܤ˸«½Ð¤·¤¬Æþ¤Ã¤Æ¤¤¤Æ¡¢ ¤³¤ì¤ò¼Î¤Æ¤¿¤¤¤È»×¤¤¤Þ¤¹¡£ º£¤Ï¡¢ $trash = <>; while (<>) { ($filename, $title) = <>; } ¤Î¤è¤¦¤Ë¤·¤Æ¤¤¤Þ¤¹¤¬¡¢ $trash ¤¬£±²ó¤·¤«»È¤ï¤ì¤Æ¤¤¤Þ¤»¤ó¤¬½ñ¤´Ö°ã¤¤¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¤«¡¢ ¤È¤¤¤¦·Ù¹ð¤¬½Ð¤Þ¤¹¡£ ·Ù¹ð¤À¤«¤é̵»ë¤¹¤ì¤Ð¤¤¤¤¤è¤¦¤Ê¤â¤Î¤Ç¤¹¤¬¡¢ ¤â¤Ã¤È¥¹¥Þ¡¼¥È¤Ê½ñ¤Êý¤Ï¤¢¤ë¤Ç¤·¤ç¤¦¤«¡£ |
>>4874 ¤Õ¤¯¤· - <>; - my $trash = <>; - (undef)=<>; ¤Î¤¤¤º¤ì¤«¤Ç¤É¤¦¤Ç¤·¤ç¤¦¤«¡£Perl5.8.8 ¤Ç¤ÏÌäÂꤢ¤ê¤Þ¤»¤ó¤Ç¤·¤¿¡£ |
>>4875 68user ¤µ¤ó¡¢¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ ¤¤¤º¤ì¤â 5.10.0 ¤Ç¤â¤¦¤Þ¤¯¤¤¤¤Þ¤·¤¿¡£ (undef) = <>; ¤È¤¤¤¦¤Î¤Ï¼«Ê¬¤Ç»×¤¤¤Ä¤¤¤Æ¤¤¤¿¤ó¤Ç¤¹¤¬¡¢ ¥ê¥¹¥È¥³¥ó¥Æ¥¯¥¹¥È¤Çɾ²Á¤µ¤ì¤Æ¡¢ Á´Éô¤Î¹Ô¤¬ÂåÆþ¤µ¤ì¤¿¤Î¤Á£²¹ÔÌܰʹߤϼΤƤé¤ì¤ë ¡Ê£±¹ÔÌܤâ undef ¤À¤«¤é¼Î¤Æ¤é¤ì¤ë¡Ë ¤è¤¦¤Êµ¤¤¬¤·¤Æ¤¤¤Þ¤·¤¿¡£ ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ |
>>4876 ¤Õ¤¯¤· ¤¢¤¢¤½¤¦¤Ç¤¹¤Í¡£½ñ¤¯¤Ê¤é (undef)=scalar(<IN>); ¤Ç¤·¤ç¤¦¤«¡£¤·¤«¤·»Å»ö¤Ç¤³¤Î¥³¡¼¥É¸«¤¿¤é¥¤¥é¥Ã¤È¤·¤Þ¤¹¤Í¤§¡£ |
>>4873 Âç¿Ã ¤´´üÂԤ˱褨¤º»ÄÇ°¤Ç¤¹¤¬¡¢¤¿¤Ö¤ó¿˻¤ÇÁ±Îɤʥץí¤Î³§¤µ¤ó¤È¤«¤«¤é¤Î ²óÅú¤Ë¤Ê¤ë¤È»×¤¤¤Þ¤¹¡£ ¤É¤Î¤¯¤é¤¤´°àú¤«»¯¤·¤¿¤é¿Ê¸À¤¢¤ë¤«¤â¤Ç¤¹¤è¡£ |
¤½¤¦¤¤¤¨¤Ð¡Ê¤É¤¦¤¤¤¨¤Ð¤À¡Ë°ÊÁ°¡Ê¿ôǯÁ°¡ËPerl ¤Ç goto FIN; sub foo {} FIN: ¤À¤È¥¨¥é¡¼¤Ë¤Ê¤ë¤±¤É goto FIN; FIN: sub foo {} ¤Þ¤¿¤Ï goto FIN; sub foo {} FIN: ; ¤À¤È¥À¥á¡¢¤È¤¤¤¦·ï¤¬¤¢¤Ã¤¿¤ó¤À¤±¤É¡¢µÞ¤Ë»×¤¤Î©¤Ã¤Æ perlbug ¤·¤Æ¤ß¤Þ¤·¤¿¡£ £²»þ´Ö¸å¤ËÊÖ»ö¤¬Íè¤Æ¡Ê¤¹¤²¤¨¤Ê¡Ëperlsyn ¤Ë½ñ¤¤¤Æ¤¢¤ë¤±¤É ¤½¤ì¤Ï¥Ð¥°¤Ç¤Ï¤Ê¤¤¡¢¥é¥Ù¥ë¤Î¸å¤Ë¤Ï£±¸Ä°Ê¾å¤Îʸ¤¬¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¤È ¤¤¤¦¤³¤È¤Ç¤¹¡££Æ£Á£Ñ¤é¤·¤¤¤Ç¤¹¤Í¡£ |
>>4872 68user ÊÖ¿®¤¬ÃÙ¤¯¤Ê¤ê¤Þ¤·¤¿¡£ 68user¤µ¤ó¤Î¶Ä¤ë¤è¤¦¤Ë¡¢¼«Ê¬¤Ç¥Ä¡¼¥ë¤òºîÀ®¤¹¤ëɬÍפ¬¤¢¤ë»ö¤òÍý²ò¤·¤Þ¤·¤¿¡£ awk¤ò»È¤Ã¤ÆºîÀ®¤·¤è¤¦¤È»×¤¤¤Þ¤¹¡£ ½é¤á¤Æºî¤ë¤Î¤Ç¡¢»þ´Ö¤¬¤«¤«¤ê¤½¤¦¤Ç¤¹¤¬·ë²Ì¤Ï¤Þ¤¿Êó¹ð¤Ë¤¤Þ¤¹¡£ ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤·¤¿¡£ |
>>4883 ¤·¤â ¤µ¤ó¡¢ ¤É¤Ã¤Á¤ß¤Á½é¿´¼Ô¤À¤Ã¤¿¤é awk ¤è¤ê Perl ¤ò¤ª¤¹¤¹¤á¤·¤Þ¤¹¡£ ÈÆÍÑÀ¤¬¤¢¤ë¤·²ÄÆÉÀ¤â¹â¤¯¤Ç¤¤ë¤È»×¤¤¤Þ¤¹¡£ ¤Á¤ç¤Ã¤È½ñ¤¤¤Æ¤ß¤ë¤È¤³¤ó¤Ê´¶¤¸¤Ç¤·¤ç¤¦¤«¡£ ¡ú¤µ¤·¤Ç¤¬¤Þ¤·¤±¤ì¤Ð¤¹¤ß¤Þ¤»¤ó¡£¤³¤³¤ÇÆɤà¤Î¤ä¤á¤Æ¤¯¤À¤µ¤¤ ^^ ¡ú ¡ú #! /bin/perl -w # dsize -- ¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê°Ê²¼¤Î¥Õ¥¡¥¤¥ë¥µ¥¤¥º¤ò½¸·× use File::Find; $total = 0; find(\&fileProc, '.'); print "Total\t$size\n"; sub fileProc { return unless -f $_; $size = -s $_; print "$File::Find::name\t$size\n"; $total += $size; } |
½éÊâŪ¤Ê¤³¤È¤Ê¤ó¤Ç¤¹¤¬¶µ¤¨¤Æ¤¯¤À¤µ¤¤¡£ tar.gz ¤Ê½ñ¸Ë¤Ë¥Õ¥¡¥¤¥ë¤òÄɲä·¤¿¤¤¾ì¹ç¡¢ ¤¤¤Á¤¤¤Águnzip¤·¤Ê¤¤¤È¤¤¤±¤Ê¤¤¤ó¤Ç¤·¤ç¤¦¤«¡© ¤Ê¤Ë¤«¥¹¥Þ¡¼¥È¤ÊÊýË¡¤Ï¤¢¤ë¤ó¤Ç¤·¤ç¤¦¤«¡© |
¤Ï¤¸¤á¤Þ¤·¤Æ¡¢¤Ä¤Î¤ê¤ó¡¡¤È¸Æ¤ó¤Ç¤¯¤À¤µ¤¤¡£ ÁᮤǤ¹¤¬x68kÀìÍÑ¥Þ¥¦¥¹¤¬¸Î¾ã¤·¤Þ¤·¤¿¡£ ¾É¾õ¤Ï¤È¤·¤Æ¤Ï¡¢¥«¡¼¥½¥ë¤ÏÁ´¤¯°Û¾ï¤Ê¤¯Æ°ºî¤·¤Þ¤¹¤¬¡¢¥¯¥ê¥Ã¥¯¤¬º¸±¦¤È¤â¤Ç¤¤Ê¤¯¤Ê¤ê¤Þ¤·¤¿¡£¸¶°ø¤Ï¥Ü¥¿¥ó²¼¤Î¥Þ¥¤¥¯¥í¥¹¥¤¥Ã¥Á¤Î¸Î¾ã¤Ç¤Ï¤Ê¤¤¤«¤È»×¤ï¤ì¤Þ¤¹¡£ ¤Ê¤Ë¤«ÂкöË¡¤Ï¤¢¤ê¤Þ¤»¤ó¤«¡© ¤è¤í¤·¤¯¤ª´ê¤¤¤·¤Þ¤¹¡£ |
¤Ï¤¸¤á¤Þ¤·¤Æ¡£ http://x68000.q-e-d.net/~68user/unix/pickup?find find¤ÎÀâÌÀ¤Î¤È¤³¤í¤Ç¡¢ -atime 4 4ÆüÁ°¤Ë¥¢¥¯¥»¥¹¤µ¤ì¤¿¥Õ¥¡¥¤¥ë -ctime 4 ¤Á¤ç¤¦¤É4ÆüÁ°¤Ë¥Õ¥¡¥¤¥ë¥¹¥Æ¡¼¥¿¥¹¤¬Êѹ¹¤µ¤ì¤¿¥Õ¥¡¥¤¥ë -mtime 4 ¤Á¤ç¤¦¤É3ÆüÁ°¤Ë½¤Àµ¤µ¤ì¤¿¥Õ¥¡¥¤¥ë ¤È¡¢mtime¤À¤±3ÆüÁ°¤È¤Ê¤Ã¤Æ¤¤¤Þ¤¹¤¬¡¢¤³¤ì¤Ï´Ö°ã¤¤¤Ç¤·¤ç¤¦¤«¡© |
find¤Ç¡¢¸¡º÷¤¹¤ëʸ»ú¤¬Ê£¿ô½Ð¤Æ¤¯¤ë¾ì¹ç¤Î µ½Ò¤Ë¤Ä¤¤¤Æ¶µ¤¨¤Æ¤¯¤À¤µ¤¤¡£ ¤¢¤ë¥Ç¥£¥ì¥¯¥È¥ê¤Ë¡¢°Ê²¼¤ÎÍͤʡÖYYYYmmdd¡×·Á¼°¤Î ¥Ç¥£¥ì¥¯¥È¥ê¤¬Â¸ºß¤·¤¿¾ì¹ç¤Ç¤¹¤¬¡¢Ì¾Á°¤¬¤¹¤Ù¤Æ¡¢ ¡Ö0¡Á9¡×¤Î¿ô»ú¤Ç¤¢¤ë¥Ç¥£¥ì¥¯¥È¥ê¤Î¤ß¤òɽ¼¨¤·¤¿¤¤ ¤Î¤Ç¤¹¤¬¡¢¤É¤Î¤è¤¦¤Ë½ñ¤±¤Ð¤è¤¤¤Î¤Ç¤·¤ç¤¦¤«¡£ find . -name '[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]' -type d ¤Çɽ¼¨¤µ¤ì¤ë¤Î¤Ç¤¹¤¬¡¢ [0-9]¤ò8²ó½ñ¤¯°Ê³°¤Ë¡¢°ã¤Ã¤¿½ñ¤Êý¤Ï¤Ê¤¤¤Ç¤·¤ç¤¦¤«¡£ find . -name '[0-9]*[0-9]' -type d find . -name '[0-9]......[0-9]' -type d find . -name '[0-9]*......[0-9]' -type d find . -name '[0-9]......*[0-9]' -type d ¤È¤«¤·¤Æ¤ß¤¿¤Î¤Ç¤¹¤¬¡£ /tmpÇÛ²¼¤Ë¡¢ 20080301 20080302 20080303 20080303.bk a0080304 2008030a 200a0306 200080307 |
>>4885 maya > tar.gz ¤Ê½ñ¸Ë¤Ë¥Õ¥¡¥¤¥ë¤òÄɲä·¤¿¤¤¾ì¹ç¡¢¤¤¤Á¤¤¤Águnzip¤·¤Ê¤¤¤È¤¤¤±¤Ê¤¤¤ó¤Ç¤·¤ç¤¦¤«¡© r ¤ÇÄɲäǤ¤Þ¤¹¤¬¡¢gzip ¤·¤Æ¤¢¤ë¾ì¹ç¤Ï¤Ç¤¤Ê¤¤¤è¤¦¤Ç¤¹¤Î¤Ç¡¢gunzip ¤¬É¬Í×¤È »×¤ï¤ì¤Þ¤¹ (BSD tar ¤È GNU tar ¤Ç³Îǧ)¡£ >>4886 ¤Ä¤Î¤ê¤ó ¥ä¥Õ¥ª¥¯¤Ë¤è¤¯½ÐÉʤµ¤ì¤Æ¤¤¤ë¤è¤¦¤Ë¸«¤¨¤Þ¤¹¤Î¤Ç¡¢¥Á¥§¥Ã¥¯¤·¤Æ¤ß¤Æ¤Ï¤É¤¦¤Ç¤·¤ç¤¦¤« º£¤Ï¡Ö¥¡¼¥Ü¡¼¥É & ¥Þ¥¦¥¹ [̤»ÈÍÑ]¡×¤¬½Ð¤Æ¤Þ¤¹¤Í¡£ >>4887 mm > ¤È¡¢mtime¤À¤±3ÆüÁ°¤È¤Ê¤Ã¤Æ¤¤¤Þ¤¹¤¬¡¢¤³¤ì¤Ï´Ö°ã¤¤¤Ç¤·¤ç¤¦¤«¡© ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£¸í¤ê¤Ç¤·¤¿¤Î¤Ç½¤Àµ¤¤¤¿¤·¤Þ¤·¤¿¡£ >>4888 ¤Ù¤¿ Perl ¤ÎÀµµ¬É½¸½ (PCRE) ¤Ç¤¢¤ì¤Ð [0-9]{8} ¤â¤·¤¯¤Ï \d{8} ¤Ç¤¹¤¬¡¢POSIX ¤Ë¤ª¤±¤ë ´ðËÜÀµµ¬É½¸½¤ä³ÈÄ¥Àµµ¬É½¸½¤Ç¤Ï¾åµ¤Î¤è¤¦¤Êɽ¸½¤Ï¤Ç¤¤Þ¤»¤ó¤Î¤Ç¡¢find ¤Ë¤³¤À¤ï¤ë ¤Î¤Ç¤¢¤ì¤Ð 8²ó½ñ¤¯¤·¤«¤Ê¤¤¤Ç¤¹¡£ ¤¢¤ë¤¤¤Ï¡¢ ¡¦File::Find ¤ò»È¤Ã¤¿ perl ¤Î¥ï¥ó¥é¥¤¥Ê¡¼¤Ç¤¬¤ó¤Ð¤ë ¡¦¥·¥§¥ëÊÑ¿ô¤ò»È¤¦ csh¡¦tcsh ¤Î¾ì¹ç: % set x='[0-9]' % find . -name "$x$x$x$x$x$x$x$x" sh¡¦bash ¤Î¾ì¹ç: % x='[0-9]' % find . -name "$x$x$x$x$x$x$x$x" ¤Ê¤É¡£ |
>>4889 68user ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ |
perl¤Î»È¤¤Êý¤Ê¤Î¤Ç¤¹¤¬¡¢ ÆüÉդȻþ´Ö¤òɽ¼¨¤¹¤ë´Êñ¤Ê¤â¤Î¤òºî¤ê¤Þ¤·¤¿¡£ ¼Â¹Ô¤·¤¿¤éÆ°¤¤¤¿¤Î¤Ç¤¹¤¬¡¢¤È¤³¤í¤¬¡¢²¼µ¤Î¤è¤¦¤Ê ¥á¥Ã¥»¡¼¥¸¤¬½Ð¤Þ¤·¤¿¡£ ------------------------------------------------------------ perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LC_ALL = (unset), LANG = "ja_JP.PCK" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). ------------------------------------------------------------ ¤³¤Î¥á¥Ã¥»¡¼¥¸¤òɽ¼¨¤µ¤»¤Ê¤¤¤è¤¦¤Ë¤¹¤ë¤Ë¤Ï¡¢¤É¤¦¤·¤¿¤é¤è¤¤¤« ¶µ¤¨¤Æ¤¯¤À¤µ¤¤¡£ ´Ä¶¤Ï¡¢Solari8 °Ê²¼¡¢perl¤Î¥·¥§¥ë¥¹¥¯¥ê¥×¥È ------------------------------------------------------------ #!/usr/local/bin/perl # ($day, $mon, $year) = (localtime(time))[3..5]; printf("Today : %04d/%02d/%02d\n",$year+1900,$mon +1,$day); ($sec, $min, $hour) = (localtime(time))[0..2]; printf("Time : %02d:%02d:%02d\n",$hour,$min,$sec); ------------------------------------------------------------ |
>>4889 68user ¤Ê¤ë¤Û¤É¡£¤³¤³¤é¤Ø¤ó¤Ïzip¤ärar¤Ê¤É¤ÈÈæ¤Ù¤ë¤ÈÉÔÊؤǤ¹¤Í¡£ ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤·¤¿¡£ |
>>4891 ¤Ù¤¿ ¡Öperl: warning: Setting locale failed¡×¤Ç¸¡º÷¤¹¤ì¤Ð½Ð¤Æ¤¤Þ¤¹¤¬¡¢ ´Ä¶ÊÑ¿ô PERL_BADLANG ¤òÀßÄꤹ¤ë¤³¤È¤Ç²óÈò²Äǽ¤Ç¤¹¡£¾ÜºÙ¤Ï¸¡º÷´ê¤¤¤Þ¤¹¡£ |
>4889 ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£¥ä¥Õ¡¼¤Î¥ª¡¼¥¯¥·¥ç¥ó ¤Ç¸«¤Æ¤ß¤Þ¤¹¡£ |
>>4893 68user ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ perl¤Î¥¹¥¯¥ê¥×¥È¤ò¼Â¹Ô»þ¤Î¤ß͸ú¤Ë¤·¤¿¤¤¤Î¤Ç¤¹¡£ perl¤Î¥¹¥¯¥ê¥×¥ÈÆâ¤Çµ½Ò¤¹¤ë¾ì¹ç¤Ï¤É¤Î¤è¤¦¤Ë ÄêµÁ¤¹¤ì¤Ð¤è¤¤¤Î¤Ç¤¹¤«¡£ |
>>4895 ¤Ù¤¿ perl ¥³¥ó¥Ñ¥¤¥ë¤ÎºÝ¤Î Configure »þ¤ËÀßÄꤹ¤ëÊýË¡¤¬¤¢¤ê¤Þ¤¹¡£ ¤½¤ì¤¬ÌµÍý¤Ê¤é #!/bin/sh PERL_BADLANG=0 /foo/bar/baz.pl ¤È wrapper ¤òºî¤ë¤«¡¢env ¥³¥Þ¥ó¥É¤Ç #!/usr/bin/env PERL_BADLANG=0 /usr/local/bin/perl ¤È¤¹¤ë¼ê¤â¤¢¤ê¤Þ¤¹¡£ |
>>4896 68user ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ #!/usr/bin/env PERL_BADLANG=0 /usr/local/bin/perl # ¤Èperl¤Î¥¹¥¯¥ê¥×¥ÈÆâ¤Ëµ½Ò¤·¤Æ¡¢¼Â¹Ô¤·¤¿¤Î¤Ç¤¹¤¬¡¢ ½èÍý¤¬¤È¤Þ¤Ã¤¿¤È¤¤¤¦¤«¡¢²¿¤â±þÅú¤¬Ê֤äƤ¤Þ¤»¤ó¡£ |
>>4897 ¤Ù¤¿ ¤Ê¤ë¤Û¤É FreeBSD 5.2.1-RELEASE ¤Ç¤ÏÆ°¤¤Þ¤¹¤¬¡¢Linux ¤Ç¤Ï³Î¤«¤Ë ̵¸Â¥ë¡¼¥×¤·¤Æ¤Þ¤¹¤Í¤§¡£ > #!/usr/bin/env PERL_BADLANG=0 /usr/local/bin/perl ¤³¤ì¤Ï FreeBSD 5.2.1-RELEASE ¤Ç¤Ï /usr/bin/env PERL_BADLANG=0 /usr/local/bin/perl ./hoge ¤È²ò¼á¤µ¤ì¤Þ¤¹¤¬¡¢Linux ¤ä Solaris ¤Ç¤Ï /usr/bin/env "PERL_BADLANG=0 /usr/local/bin/perl" ./hoge ¤È¤Ê¤ë¤¿¤á PERL_BADLANG="0 /usr/local/bin/perl" ¤È¤¤¤¦´Ä¶ÊÑ¿ô¤¬ÀßÄꤵ¤ì¤Ä¤Ä /usr/bin/env ./a ¤¬¼Â¹Ô¤µ¤ì¤ë¤â¤Î¤Î¡¢./hoge ¤Î¥·¥§¥Ð¥ó¥°¹Ô¤Ë¤Ï¤Þ¤¿Æ±¤¸ÆâÍƤ¬ ½ñ¤«¤ì¤Æ¤¤¤ë¤¿¤á¡¢±Ê±ó¤Ë execve("./a"); ¤¬¼Â¹Ô¤µ¤ì¤ë¤È¤¤¤¦¤³¤È¤Ç¤¹¤Í¡£ »²¹Í: http://x68000.q-e-d.net/~68user/unix/pickup?%A5%B7%A5%A7%A5%D0%A5%F3%A5%B0 ¤Î Tips.2 ¤È¤¤¤¦¤ï¤±¤Ç env ¥³¥Þ¥ó¥É¤ò»È¤¦¤ä¤êÊý¤Ï°Ü¿¢À¤¬¤¢¤ê¤Þ¤»¤ó¤Ç¤·¤¿¤¬¡¢ #!/bin/sh PERL_BADLANG=0 /foo/bar/baz.pl ¤Ê¤éÆ°¤¯¤È»×¤¤¤Þ¤¹¡£Linux ¤Ç¤ÏÆ°¤¤Þ¤·¤¿¡£ |
>> 4898 > #!/bin/sh > PERL_BADLANG=0 /foo/bar/baz.pl >¤Ê¤éÆ°¤¯¤È»×¤¤¤Þ¤¹¡£Linux ¤Ç¤ÏÆ°¤¤Þ¤·¤¿¡£ ¤ÇÆ°¤¤Þ¤·¤¿¡£ ¿§¡¹¤È¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤·¤¿¡£ |
¤µ¤¤Û¤É¤ªÌ䤤¹ç¤ï¤»¥Ú¡¼¥¸¤è¤ê¤´»ØŦ¤¤¤¿¤À¤¤Þ¤·¤¿¡¢¥¸¥ã¥ó¥ë°ìÍ÷¥ê¥ó¥¯ÀÚ¤ì¤Î·ï¡¢ ½¤Àµ¤·¤Þ¤·¤¿¡£¤´»ØŦ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡äÏ¢Íí¤¤¤¿¤À¤¤¤¿Êý |
2ǯȾ¤Ö¤ê¤Î¿ÍºàÊ罸¤Ç¤¹¡£ http://x68000.q-e-d.net/~68user/tmp/job2.html |
¤³¤ó¤Ë¤Á¤ï¡£ find¥³¥Þ¥ó¥É¤Ë¤Ä¤¤¤Æ¶µ¤¨¤Æ¤¯¤À¤µ¤¤¡£ ¢£Í×·ï ¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê¤Ë¸ºß¤¹¤ë31Æü°ÊÁ°¤Î¥Õ¥¡¥¤¥ë¡õ¥Ç¥£¥ì¥¯¥È¥ê¤Îºï½ü¤ò¼Â»Ü¤·¤¿¤¤ ¢£¥³¥Þ¥ó¥É find ./ -mtime +31 -exec ls {} \; -exec rm -r {} \; >> test.log ¢£·ë²Ì ./20070101.trc find: ./aaa: No such file or directory ¢£¼ÁÌ䣱 ¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê¤Ëºï½üÂоݤȤʤëÆüÉդΥե¡¥¤¥ë20070101.trc¤È¥Ç¥£¥ì¥¯¥È¥êaaa¤òÇÛÃÖ¤·¤Æ¤¤¤Þ¤¹¡£ ºï½ü¥Õ¥¡¥¤¥ë¤Î°ìÍ÷¤ò¼èÆÀ¤·¤¿¤¤¤¿¤á-exec ls {} \;¤ò»ÈÍѤ·¤¿¤Î¤Ç¤¹¤¬¡¢ ¥í¥°¤Ë¤Ï./20070101.trc¤·¤«µºÜ¤¬¤¢¤ê¤Þ¤»¤ó¡£ ¥Ç¥£¥ì¥¯¥È¥ê¤âɽ¼¨¤µ¤»¤ë¤Ë¤Ï²¿¤«¥ª¥×¥·¥ç¥ó¤¬É¬ÍפʤΤǤ·¤ç¤¦¤«¡© ¢£¼ÁÌ䣲 ¼Â¹Ô·ë²Ì¤È¤·¤Æ¤Ïºï½ü¤Ï¹Ô¤ï¤ì¤Æ¤¤¤ë¤Î¤Ç¤¹¤¬Ìá¤êÃͤ¬¥¨¥é¡¼¤È¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£ find: ./aaa: No such file or directory¤ÎÉôʬ¤ò»Ø¤·¤Æ¤¤¤ë¤È»×¤¦¤Î¤Ç¤¹¤¬¡¢ ºï½ü¸å¤Ëfind¤·¤Æ¤¤¤ë¤è¤¦¤Ë¸«¼õ¤±¤é¤ì¤Þ¤¹¤¬¤³¤Î¥¨¥é¡¼¤Î½ÐÎϸ¶°ø¤Ï¤Ê¤ó¤Ç¤·¤ç¤¦¤«¡© 1¤È£²¤Î²ò·èÊýË¡¤¬¤¢¤ê¤Þ¤·¤¿¤é¶µ¤¨¤Æ¤¯¤À¤µ¤¤¡£ µ¹¤·¤¯¤ª´ê¤¤¤·¤Þ¤¹¡£ |
>>4902 TKC ¤Þ¤º¡¢-exec ¤ÎÂå¤ï¤ê¤Ë -ok ¤ò»È¤Ã¤Æ²¿¤¬¼Â¹Ô¤µ¤ì¤Æ¤¤¤ë¤«³Îǧ¤·¤Þ¤·¤ç¤¦¡£ > ¥Ç¥£¥ì¥¯¥È¥ê¤âɽ¼¨¤µ¤»¤ë¤Ë¤Ï²¿¤«¥ª¥×¥·¥ç¥ó¤¬É¬ÍפʤΤǤ·¤ç¤¦¤«¡© ./aaa/ ¤ÎÃæ¿È¤¬¶õ¤Ç¤Ï¤Ê¤¤¤Ç¤¹¤«? ¶õ¤Ç¤¢¤ì¤Ð ls ./aaa ¤·¤Æ¤â²¿¤â ɽ¼¨¤µ¤ì¤Ê¤¤¤È»×¤¤¤Þ¤¹¡£ > ºï½ü¸å¤Ëfind¤·¤Æ¤¤¤ë¤è¤¦¤Ë¸«¼õ¤±¤é¤ì¤Þ¤¹¤¬¤³¤Î¥¨¥é¡¼¤Î½ÐÎϸ¶°ø¤Ï > ¤Ê¤ó¤Ç¤·¤ç¤¦¤«¡© find ¤Ï¥Ç¥£¥ì¥¯¥È¥ê¤ò²¼¹ß¤·¤Æ¥Õ¥¡¥¤¥ë¤òõ¤·¤Þ¤¹¤¬¡¢¤ª¤½¤é¤¯ ¥Ç¥£¥ì¥¯¥È¥ê¤òºï½ü¤·¤¿¸å¤Ë¤½¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Ë²¼¤ê¤è¤¦¤È¤·¤Æ¤¤¤ë ¤Î¤Ç¤Ï¤Ê¤¤¤Ç¤·¤ç¤¦¤«¡£-prune ¤òÁȤ߹ç¤ï¤»¤ì¤Ð²¼¤ê¤Ê¤¤¤è¤¦¤Ë ¤Ç¤¤ë¤«¤â¤·¤ì¤Þ¤»¤ó (»î¤·¤Æ¤¤¤Þ¤»¤ó)¡£ |
>>4903 68user¤µ¤ó -ok¤ò»ÈÍѤ·¤Æ³Îǧ¤·¤Þ¤·¤¿¡£ ¤´»¡¤·¤ÎÄ̤ê./aaaÇÛ²¼¤¬¶õ¤Î¤¿¤á< ls ... ./aaa >¤È¤Ê¤ê ·ë²ÌŪ¤Ë¥í¥°¤Ë./aaa¤¬½ÐÎϤµ¤ì¤Æ¤¤¤Ê¤¤¤³¤È¤¬¤ï¤«¤ê¤Þ¤·¤¿¡£ find¤Î¥¨¥é¡¼¸¶°ø¤Ï¤ä¤Ï¤êºï½ü¸å¤ËÇÛ²¼¤Ë°ÜÆ°¤·¤Æ¤¤¤ë¤â¤Î¤È»×¤ï¤ì¤Þ¤¹¡£ rm¤Ë¥Ç¡¼¥¿¤¬ÅϤëÁ°¤Ë-prune¤ò»È¤¤²ò¾Ã¤µ¤ì¤Þ¤·¤¿¡£ ºÇ½ªÅª¤Ë¤Ï²¼µ¤Ç¹Ô¤¤¤¿¤¤½èÍý¤¬¤Ç¤¤Þ¤·¤¿¡£ find ./ -mtime +31 -prune -exec ls -d {} \; -exec rm -r {} \; ¤É¤¦¤â¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤·¤¿¡£ |
¤¤¤Ä¤â¤³¤Á¤é¤Ë¤Ï¤ªÀ¤ÏäˤʤäƤޤ¹¡£ flex¤Ë¤Ä¤¤¤Æ¤Î»ØŦ¤Ç¤¹¡£ http://x68000.q-e-d.net/~68user/unix/pickup?flex GNU¤Ç¤ÏºîÀ®¡¦ÇÛÉÛ¤·¤Æ¤Ê¤¤¤è¤¦¤Ç¤¹¡£ http://ftp.gnu.org/gnu/flex/flex.README |
>>4906 hoge > GNU¤Ç¤ÏºîÀ®¡¦ÇÛÉÛ¤·¤Æ¤Ê¤¤¤è¤¦¤Ç¤¹¡£ ¤½¤¦¤Ê¤ó¤Ç¤¹¤«¡£ÃΤê¤Þ¤»¤ó¤Ç¤·¤¿¡£ ftp://ftp.gnu.org/non-gnu/flex/flex.README Flex is a free implementation of the well-known Lex program for lexical analysis. Since it is not (and never was) a GNU package, we don't distribute it here. Please see http://flex.sourceforge.net for the latest release and information. ¤ä flex-2.5.4 (1997ǯ¥ê¥ê¡¼¥¹) ¤Î README Note that flex is distributed under a copyright very similar to that of BSD Unix, and not under the GNU General Public License (GPL), except for the "configure" script, which is covered by the GPL. ¤Ê¤É¤ò¸«¤ë¤Ë¡¢³Î¤«¤Ë flex ¤¬ GNU ¤Ç¤Ï¤Ê¤¤¤è¤¦¤Ç¤¹¤Í¡£ ¤·¤«¤·¤³¤Î½ñÀÒ http://www.ascii.co.jp/books/books/detail/4-7561-3097-6.shtml FlexÆþÌç ¥·¥ê¡¼¥º¡§GNU¥·¥ê¡¼¥º GNU¤Î¥Ä¡¼¥ë¤Î1¤Ä¤È¤·¤Æ¹¤¯»ÈÍѤµ¤ì¤Æ¤¤¤ëGNU¤ÎLexical Scanner Generator¤Ç ¤¢¤ëFlex¤Î²òÀâ½ñ¡£ËÉÙ¤ÊÎã¤È¤È¤â¤Ëµ¡Ç½¤ò¾ÜºÙ²òÀ⠤Ϥɤ¦¤Ê¤ó¤Ç¤¹¤«¤Í¡£ wikipedia(en) ¤Ë¤Ï http://en.wikipedia.org/wiki/Flex_lexical_analyser Flex is a non-GNU project, but the GNU project developed the manual for Flex. ¤È¤¢¤ê¤Þ¤¹¤¬¡¢¡ÖGNU ¤¬ºî¤Ã¤¿ flex ¤Î¥Þ¥Ë¥å¥¢¥ë¡×¤ÎËÝÌõ¤¬¾åµ¤Î¡ÖFlex ÆþÌç¡× ¤À¤Ã¤¿¤ê¤¹¤ë¤ó¤Ç¤·¤ç¤¦¤«¡£ |
>>4907 68user ¤¦¡¼¤ó¡¢¤ä¤Ï¤ê 2.5.3 °ÊÁ°¤Ï GNU ¤À¤Ã¤¿¤Î¤À¤í¤¦¤«¡£ http://cocoa.2ch.net/unix/kako/970/970914036.html ¤è¤ê ----- ¤³¤³¤«¤é ----- Flex ¤Ï¤½¤â¤½¤â non-gnu¤Ë°ÜÆ°¤Ë¤Ê¤Ã¤Æ¡¢ ²¼¤Î Flex 2.5.4¤Î COPYING ¤ß¤¿¤¤¤Ê¤³¤È¤Ë¤Ê¤Ã¤Æ¤¤¤ë¡£ -=-=-=-=- Flex carries the copyright used for BSD software, slightly modified because it originated at the Lawrence Berkeley (not Livermore!) Laboratory, which operates under a contract with the Department of Energy: Copyright (c) 1990 The Regents of the University of California. All rights reserved. This code is derived from software contributed to Berkeley by Vern Paxson. The United States Government has rights in this work pursuant to contract no. DE-AC03-76SF00098 between the United States Department of Energy and the University of California. Redistribution and use in source and binary forms with or without modification are permitted provided that: (1) source distributions retain this entire copyright notice and comment, and (2) distributions including binaries display the following acknowledgement: ``This product includes software developed by the University of California, Berkeley and its contributors'' in the documentation or other materials provided with the distribution and in all advertising materials mentioning features or use of this software. Neither the name of the University nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. This basically says "do whatever you please with this software except remove this notice or take advantage of the University's (or the flex authors') name". Note that the "flex.skl" scanner skeleton carries no copyright notice. You are free to do whatever you please with scanners generated using flex; for them, you are not even bound by the above copyright. ----- ¤³¤³¤Þ¤Ç ----- ¡Önon-gnu ¤Ë°ÜÆ°¡×¤È¤¤¤¦µ½Ò¤Ï¤¤¤í¤ó¤Ê¤È¤³¤í¤Ë¤¢¤ë¤¬¡¢¤½¤ì¤òº¬µò¤Ë ¡Ö°ÊÁ°¤Ï GNU ¤À¤Ã¤¿¡×¤È¸À¤¤¤¤ì¤Ê¤¤¡£¸Å¤¤ tarball ¤â¸«¤Ä¤«¤é¤Ê¤¤¤·¡Ä¡£ |
>>4908 68user > ¤¦¡¼¤ó¡¢¤ä¤Ï¤ê 2.5.3 °ÊÁ°¤Ï GNU ¤À¤Ã¤¿¤Î¤À¤í¤¦¤«¡£ flex-2.5.2/COPYING ¤ò³Îǧ¤·¤Þ¤·¤¿¤¬¡¢ >> ²¼¤Î Flex 2.5.4¤Î COPYING ¤ß¤¿¤¤¤Ê¤³¤È¤Ë¤Ê¤Ã¤Æ¤¤¤ë¡£ ¤È¤Û¤ÜƱ¤¸¤Ç¤·¤¿¡£¤è¤Ã¤Æ¡¢°ÊÁ°¤Ï flex ¤Ï GNU ¤Ç¤¢¤Ã¤¿¤¬¡¢ ¤¢¤ë»þÅÀ¤«¤é GNU ¤Ç¤Ê¤¯¤Ê¤Ã¤¿¡¢¤Ê¤É¤È¤¤¤¦»ö¼Â¤Ï¤Ê¤¤¤è¤¦¤Ç¤¹¡£ |
>>4907 68user > http://www.ascii.co.jp/books/books/detail/4-7561-3097-6.shtml > FlexÆþÌç > ¥·¥ê¡¼¥º¡§GNU¥·¥ê¡¼¥º ¸å¤Ï¤³¤ì¤À¤±¤¬µ¤¤Ë¤Ê¤Ã¤Æ¤·¤ç¤¦¤¬¤Ê¤¤¤Î¤Ç¡¢¥¢¥¹¥¡¼¤Ë¡Ö¤Ê¤¼ GNU ¥·¥ê¡¼¥º¤Ê¤Î¤«¡×¤È¤¤¤¦ Ì䤤¹ç¤ï¤»¤òÅꤲ¤Þ¤·¤¿¡£ÊÖ»öÍè¤ë¤È¤¤¤¤¤Ê¤¡¡£ # ¤½¤ÎÁ°¤ËÌõ¼Ô¤È»×¤ï¤ì¤ëÊý¤Ë¥á¡¼¥ë¤òÅꤲ¤¿¤â¤Î¤Î¡¢user unknown ¤ÇÊ֤äƤ¤Þ¤·¤¿¡£ |
ÌäÂê¤òÅꤲ¤Ã¤Ñ¤Ê¤·¤Ë¤·¤Æ¤¹¤¤¤Þ¤»¤ó¡£ PHP¤Î¥³¥ó¥Ñ¥¤¥ë¤ËɬÍפÀ¤Ã¤¿¤Î¤Çõ¤·¤Æ¤¤¤¿¤À¤±¤Ç¡¢ flex¤Ë¤Ä¤¤¤Æ¤ÏÁ´¤¯ÃΤé¤Ê¤¤¤ó¤Ç¤¹^^; > ¡ÖGNU ¤¬ºî¤Ã¤¿ flex ¤Î¥Þ¥Ë¥å¥¢¥ë¡×¤ÎËÝÌõ¤¬¾åµ¤Î¡ÖFlex ÆþÌç¡× > ¤À¤Ã¤¿¤ê¤¹¤ë¤ó¤Ç¤·¤ç¤¦¤«¡£ http://www.gnupress.org/book11.html GNU Press¡ÖFlex: The Lexical Scanner Generator¡× http://www.asahi-net.or.jp/~wg5k-ickw/html/online/flex-2.5.4/flex_1.html Ìõ¼Ô¤ÎÊý¤Ë¤è¤ë¡¢¡ÖFlexÆþÌç¡×¤ÈƱÆâÍƤΥڡ¼¥¸¤À¤È»×¤ï¤ì¤Þ¤¹¡£ ISBN¤Îµ½Ò¤«¤é¡¢¤´¿ä»¡¤Î¤È¤ª¤ê ¡ÖGNU ¤¬ºî¤Ã¤¿ flex ¤Î¥Þ¥Ë¥å¥¢¥ë¡×¤ÎËÝÌõ¤¬¡ÖFlex ÆþÌç¡× ¤À¤È¹Í¤¨¤Þ¤¹¤¬¡¢¤¤¤«¤¬¤Ç¤·¤ç¤¦¤«¡£ |
http://x68000.q-e-d.net/~68user/net/net-1.html ¤Î[¥Û¥¹¥È̾¤È¤Ï¡©]¤òÆɤó¤Ç¤¤¤Þ¤·¤¿¤é¡¢http//133.8.2.24/¤Çhttp//www.cs.gunma-u.ac.jp ¤ÈƱ¤¸¥Ú¡¼¥¸¤¬É½¼¨¤µ¤ì¤ë¤Ï¤º¤Ç¤¹¤È ¤Ê¤Ã¤Æ¤¤¤Þ¤¹¤¬¤¬¡¢http//133.8.3.11/¤Ç¤Ê¤¤¤Èɽ¼¨¤µ¤ì¤Ê¤¤¤è¤¦¤Ë»×¤¤¤Þ¤¹¡£»²¹Í¤Ë¤µ¤»¤Æ夤¤Æ¤¤¤Þ¤¹¡£ |
>>4912 hoge flex ¤Ë¤Ä¤¤¤Æ¤Ï¹¹¿·¤·¤Æ¤ª¤ê¤Þ¤¹¡£¤´»ØŦ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ http://x68000.q-e-d.net/~68user/unix/pickup?flex ¡ÖGNU ¥·¥ê¡¼¥º¡×¤Ë¤Ä¤¤¤Æ¤Ï¥¢¥¹¥¡¼¤è¤ê²óÅú¤ò¤¤¤¿¤À¤¤¤¿¤Î¤Ç¤¹¤¬¡¢ »ÄÇ°¤Ê¤¬¤é Web ¤Ç¤Î¸ø³«¤ÏÉԲĤȤΤ³¤È¤Ê¤Î¤Ç¡¢Êè¾ì¤Þ¤Ç»ý¤Ã¤Æ¤¤¤ ¤¿¤¤¤È»×¤¤¤Þ¤¹¡£ >>4913 BK ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£¼è¤êµÞ¤® IP ¥¢¥É¥ì¥¹¤Î¤ß¹¹¿·¤·¤Þ¤·¤¿¡£ |
sh¤Ç¡¢Ê¸»úÎ󤫤éʸ»úÎó¤ò¼è¤ê½Ð¤½¤¦¤È¤·¤Æ¤¤¤Þ¤¹¡£ ¡Éaaa.bbb@test.cojp¡É ¤«¤é¡Ö@¡×¤è¤êÁ°¤È¸å¤ò¡¢ ¡Éaaa.bbb" ¤È ¡É@test.co.jp¡É ¤ò¼è¤ê½Ð¤·¤¿¤¤¤Î¤Ç¤¹¡£ ¤É¤Î¤è¤¦¤Ë¤¹¤ì¤ÐÎɤ¤¤«¶µ¤¨¤Æ¤¯¤À¤µ¤¤¡£ |
>>4915 ¤Ù¤¿ ÊÑ¿ô $email ¤Ë¥á¡¼¥ë¥¢¥É¥ì¥¹¤¬Æþ¤Ã¤Æ¤¤¤ë¤Ê¤é¡¢¤³¤ó¤Ê´¶¤¸¤Ç¤·¤ç¤¦¤«¡£ $ echo $email | sed 's/\(.*\)@.*/\1/' aaa $ echo $email | sed 's/.*\(@.*\)/\1/' @bbb.com |
Ìíå ïîíðàâèëñÿ òâîé ïîðòàë, êîíå÷íî æå ÿ åãî âíåñó ê ñåáå â çàêëàäêè è òåïåðü êàæäûé ðàç áóäó åãî ïîñåùàòü. Òâîé ïîðòàë äîñòîéííûé âíèìàíèÿ ñ íå òîëüêî ñ ÷àñòè êîíòåíòà, íî è ïðîñòî ñ âåñåëîãî îôîðìëåíèÿ. Ïðåäëàãàþ ïîñåòèòü <a href=http://www.find-business.ru>ìîé</a> ïîðòàë |
iconv¤Ë¤Ä¤¤¤Æ¶µ¤¨¤Æ¤¯¤À¤µ¤¤¡£ Solaris8¤Ç¡¢iconv¥³¥Þ¥ó¥É¤ò»ÈÍѤ·¤Æ¤¤¤Þ¤¹¡£ º£¡¢»ÈÍѤ·¤Æ¤¤¤ë´Ä¶¤Ë¡¢iconv¥³¥Þ¥ó¥É¤¬£²¤ÄÆþ¤Ã¤Æ¤¤¤Þ¤¹¡£ £±¡¥/usr/local/bin/iconv £²¡¥/usr/bin/iconv £±¤È£²¤ÏÆüÉÕ¡¢¥µ¥¤¥º¤¬°Û¤Ê¤ê¡¢£±¤ÎÊý¤¬¡¢ÆüÉÕ¤¬¿·¤·¤¯¡¢¥µ¥¤¥º¤âÂ礤¤¤Ç¤¹¡£ ´Ä¶ÊÑ¿ô¤Î¥Ñ¥¹¤âξÊýÀßÄꤵ¤ì¤Æ¤¤¤Æ¡Öusr/local/bin¡×¤Î¥Ñ¥¹¤¬ À褢¤ë¤Î¤Ç¡¢which¥³¥Þ¥ó¥É¤ÇÄ´¤Ù¤ë¤È¡¢£±¤ÎÊý¤òɽ¼¨¤·¤Þ¤¹¡£ ¥·¥§¥ë¤«¤é¡¢iconv¤ò¼Â»Ü¤·¤¿¤¤¤Î¤Ç¤¹¤¬¡¢¤É¤Á¤é¤ÎÊý¤ò»È¤¨¤Ð ¤è¤¤¤Î¤Ç¤¹¤«¡£ iconv¤È¤·¤Æ¤É¤¦¤Á¤¬¤¦¤Î¤Ç¤·¤ç¤¦¤«¡£µ¡Ç½Åª¤Ë¤â°ã¤¦¤Î¤Ç¤·¤ç¤¦¤«¡£ £±¡¥/usr/local/bin/iconv ¤Î¾ì¹ç ¥³¥Þ¥ó¥É¤¬¥¨¥é¡¼¤È¤Ê¤Ã¤¿¾ì¹ç¡¢status¤Ë¡¢¡É0¡É¤«¡É1¡É¤¬Ê֤롣 # /usr/local/bin/iconv -f SJIS -t UTF8 sjis_file.txt > utf_file.txt iconv: conversion to UTF8 unsupported # echo $? 1 # £²¡¥/usr/bin/iconv ¤Î¾ì¹ç ¥³¥Þ¥ó¥É¤¬¥¨¥é¡¼¤È¤Ê¤Ã¤¿¾ì¹ç¡¢status¤¬¡¢¡É0¡É¤È¤Ê¤ë¡£ ¥¨¥é¡¼¤âɽ¼¨¤µ¤ì¤Ê¤¤¡£ # /usr/bin/iconv -f SJIS -t UTF8 contact_SJIS.txt > uft_file.txt # echo $? 0 # ¥·¥§¥ë¤«¤é¡¢iconv¤ò¼Â»Ü¤·¤¿¤¤¤Î¤Ç¤¹¤¬¡¢¤É¤Á¤é¤ÎÊý¤ò»È¤¨¤Ð ¤è¤¤¤Î¤Ç¤¹¤«¡£ iconv¤È¤·¤Æ¤É¤¦¤Á¤¬¤¦¤Î¤Ç¤·¤ç¤¦¤«¡£µ¡Ç½Åª¤Ë¤â°ã¤¦¤Î¤Ç¤·¤ç¤¦¤«¡£ ´Ä¶¤Ï Solaris8 sh(B¥·¥§¥ë) |
>4916 ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ expr index "${email}" @ ¤ä echo ${email} | awk '{ print substr($0,1,index($0,"@")-1)}' ¤ä ANS=`echo ${email} | awk '{printf "%s",index($0,"@")}'` ¡Ö@¡×¤¬ºÇ½é¤Ë¸½¤ì¤¿°ÌÃÖ¤ò¼èÆÀ¤·¤Æ¡¢cut ¤Ç¼è¤ê½Ð¤· echo ${email} | cut -c1-`expr ${ANS} - 1` echo ${email} | cut -c`expr ${ANS} + 1` awk¤ä¡¢£±²ó¤Ç¼è¤ê½Ð¤·¤¿¤«¤Ã¤¿¤Î¤Ç¡¢expr ¤Ç¤ä¤Ã¤¿¤Î¤Ç¤¹¤¬¡¢ expr index ¤Î·Á¼°»È¤¨¤Ê¤¤¤Î¤Ç¡¢awk¤Ç¤ä¤Ã¤¿¤Î¤Ç¤¹¤¬¡¢ sed¡¡¤ÇÃÖ´¹¤¹¤ëÊýË¡¤Ïµ¤¤¬ÉÕ¤¤Þ¤»¤ó¤Ç¤·¤¿¡£ ¤¿¤á¤·¤Æ¸«¤Þ¤¹¡£ |