½é¤á¤Æ¼ÁÌ䤵¤»¤Æ¤¤¤¿¤À¤¤Þ¤¹¡£ 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¡¡¤ÇÃÖ´¹¤¹¤ëÊýË¡¤Ïµ¤¤¬ÉÕ¤¤Þ¤»¤ó¤Ç¤·¤¿¡£ ¤¿¤á¤·¤Æ¸«¤Þ¤¹¡£ |
>>4918 ¤Ù¤¿ /usr/local/bin/iconv ¤Ï GNU ¤Î libconv Ʊº¤Î iconv ¥³¥Þ¥ó¥É¡¢ /usr/bin/iconv ¤Ï Solaris ɸ½à¤Î iconv ¥³¥Þ¥ó¥É¤Ç¤Ï¤Ê¤¤¤«¤È »×¤¤¤Þ¤¹¡£ GNU ÈǤǤ¢¤ì¤Ð¡¢--version ¥ª¥×¥·¥ç¥ó¤ò»È¤¦¤³¤È¤Ç % iconv --version iconv (GNU libc) 2.3.4 Copyright (C) 2005 Free Software Foundation, Inc. (ά) ¤È¤¤¤Ã¤¿É½¼¨¤¬ÆÀ¤é¤ì¤ë¤«¤È»×¤¤¤Þ¤¹¡£ °Ê²¼¤Ï Solaris ÈÇ¤È GNU ÈǤΰ㤤¤Ç¤¢¤Ã¤¿¤È¤·¤Æ¡¢¤È¤¤¤¦Á°Äó¤Ç¤¹¤¬¡¢ µ¡Ç½º¹¤ÇÁª¤Ö¤Ê¤é¢¤òÈæ³Ó (ÀΤΠSolaris ÈÇ iconv ¤Ï¡¢ÉÔÀµ¤Ê¥Ð¥¤¥ÈÎó¤¬ ¤¢¤Ã¤¿¾ì¹ç¨½ªÎ»¤À¤Ã¤¿µ¤¤¬¤¹¤ë¤Î¤Ç¤¹¤¬¡¢¸½ºß¤Ï¥¹¥¥Ã¥×¤È¤¤¤¦ÁªÂò»è¤â Áª¤Ù¤ë¤ó¤Ç¤¹¤«¤Í? ¤Ç¤¢¤ì¤Ð¤½¤ì¤Û¤Éµ¡Ç½º¹¤Ï¤Ê¤¤¤«¤â) http://docs.sun.com/app/docs/doc/819-1210/6n3j74jpk?a=view http://www.gnu.org/software/libiconv/documentation/libiconv/iconv.1.html ¥¨¥ó¥³¡¼¥Ç¥£¥ó¥°¤Î¿¤µ¤ÇÁª¤Ö¤Ê¤é¡¢/usr/local/bin/iconv -l ¤È /usr/lib/iconv/iconv_data ¤òÈæ³Ó¡£ÆÃ¤Ë CP932 ¤ä UTF-8 ¤Ê¤É¤¬Íí¤à ¾ì¹ç¤Ï¡¢¼ê»ý¤Á¤ÎÁ´¥Õ¥¡¥¤¥ë¤òÊÑ´¹¤·¤Æ·ë²Ì¤òÄ´¤Ù¤ë¤¯¤é¤¤¤Ï¤ä¤Ã¤¿ Êý¤¬¤è¤¤¤«¤È»×¤¤¤Þ¤¹¡£ ¸å¤Ï GNU ¤¬¹¥¤¤«¡¢Solaris ¤ÎÀ¤³¦¤Ç¸Ç¤á¤ë¤Î¤¬¹¥¤¤«¡¢¤Ç¤·¤ç¤¦¤«¡£ |
>>4919 ¤Ù¤¿ expr ¤ä cut ¤Ç¤â¤Ç¤¤Þ¤¹¤è¡£ (cut ¤Î¾ì¹ç¤Ï @ ¤¬ÉÕ¤¤Þ¤»¤ó¤¬¡£) $ expr $email : '\(.*\)@.*' $ expr $email : '.*\(@.*\)$' $ echo $email | cut -d '@' -f 1 $ echo $email | cut -d '@' -f 2 >>4918 ¤Ù¤¿ Solaris ¤Ë¤Ïɸ½à¤Ç /usr/local ¤È¤¤¤¦¥Ç¥£¥ì¥¯¥È¥ê¤¬¤Ê¤¤¤Î¤Ç¡¢ 68user ¤µ¤ó¤Î¶Ä¤ë¤È¤ª¤ê¤À¤È»×¤¤¤Þ¤¹¡£ |
>>4921 zsh ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ expr¤äcut¤Ç¤Î»È¤¤Êý¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ ÊÙ¶¯¤Ë¤Ê¤ê¤Þ¤¹¡£ |
WindowsXP IE6.0 SP2 ¤ÎÊ̤ÎüËö¤«¤é½ñ¤¹þ¤ß¤ò ¤ª¤³¤Ê¤Ã¤¿¤é°Ê²¼¤Î¥¨¥é¡¼²èÌ̤¬É½¼¨¤µ¤ì¤Þ¤·¤¿¡£ ²¿¤«¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤¤¤Ê¤¤¤â¤Î¤¬¤¢¤ë¤Î¤Ç¤·¤ç¤¦¤«¡£ ¥¨¥é¡¼ : ÆâÉô¥¨¥é¡¼¤¬µ¯¤³¤ê¤Þ¤·¤¿¡£ http://x68000.q-e-d.net/%7E68user/cgi-bin/wwwboard.cgi ¤Î¼Â¹Ô¤¬¤Ç¤¤Þ¤»¤ó¤Ç ¤·¤¿¡£ ¤ª¤½¤é¤¯CGI¥×¥í¥°¥é¥à¤ÎÉÔ¶ñ¹ç¤¬¸¶°ø¤Ç¤¹¡£ ¤â¤·¡¢¤³¤Á¤é¤Î¥Õ¥¡¥¤¥ëÀßÄê¥ß¥¹¡¦¥ê¥ó¥¯¥ß¥¹¡¦CGI ¤ÎÉÔ¶ñ¹ç¤Ê¤É¤¬¸¶°ø¤Ç¤¢¤Ã¤¿¾ì ¹ç¤ÏÁáµÞ¤Ë½¤Àµ¤·¤Þ¤¹¡£ ¤Î²èÌ̤¬É½¼¨¤µ¤ì¤Þ¤¹¡£ |
>>4918 ¤Ù¤¿ >>4921 zsh ÀâÌÀ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ ¤½¤ì¤Ç¤Ê¤Î¤Ç¤¹¤¬¡¢¥¹¥Æ¡¼¥¿¥¹¤¬Ê֤äƤ¯¤ë¤È¤¤¤¦¤³¤È¤Ç¡¢ ¡Ö/usr/local/bin/iconv¡×¤ò»È¤Ã¤Æ¤¤¤Þ¤¹¡£ B¥·¥§¥ë¤Ç¼Â¹Ô¤·¤Æ¤¤¤Þ¤¹¡£ iconv¥³¥Þ¥ó¥É¤ò¥Ñ¥¤¥×¤Ç¤Ä¤Ê¤¤¤Ç¡¢Ï¢Â³¤Ç¼Â¹Ô¤·¤Æ¤¤¤Þ¤¹¡£ /usr/local/bin/iconv -f SJIS -t UTF-8 file_sjis.txt | /usr/local/bin/iconv -f UTF-8 -t UTF-16 > file_utf.txt £±²óÌܤÎiconv¡Ê¥Ñ¥¤¥×¤Îº¸Â¦¤Îiconv¡Ë¤¬¥¨¥é¡¼¤È¤Ê¤Ã¤¿¤È¤¡¢ ¥¹¥Æ¡¼¥¿¥¹¤¬¥¨¥é¡¼¤ÇÊ֤äƤ¤Þ¤»¤ó¡£ ¥¨¥é¡¼¤òȽÃǤ·¤¿¤¤¤Î¤Ç¤¹¤¬¡¢¤É¤Î¤è¤¦¤Ë¤·¤¿¤é¥¨¥é¡¼¤ÈȽÃÇ ¤Ç¤¤ë¤Ç¤·¤ç¤¦¤«¡£ /usr/local/bin/iconv -f SJIS -t UTF8 file_sjis.txt | /usr/local/bin/iconv -f UTF-8 -t UTF-16 > file_utf.txt echo $? iconv: conversion to UTF8 unsupported 0 ¡É0¡É¤¬Êֵѡ£ /usr/local/bin/iconv -f SJIS -t UTF-8 file_sjis.txt | /usr/local/bin/iconv -f UTF-8 -t UTF16 > file_utf.txt echo $? iconv: conversion to UTF16 unsupported 1 ¡É1¡É¤¬Êֵѡ£ |
>>4923 ¤Ù¤¿ ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ $ expr $email : '\(.*\)@.*' $ expr $email : '.*\(@.*\)$' $ echo $email | cut -d '@' -f 1 $ echo $email | cut -d '@' -f 2 ¤É¤ì¤Ç¤â¡¢¼è¤ê½Ð¤»¤Þ¤·¤¿¡£ |
>>4925 ¤Ù¤¿ > £±²óÌܤÎiconv¡Ê¥Ñ¥¤¥×¤Îº¸Â¦¤Îiconv¡Ë¤¬¥¨¥é¡¼¤È¤Ê¤Ã¤¿¤È¤¡¢ > ¥¹¥Æ¡¼¥¿¥¹¤¬¥¨¥é¡¼¤ÇÊ֤äƤ¤Þ¤»¤ó¡£ > ¥¨¥é¡¼¤òȽÃǤ·¤¿¤¤¤Î¤Ç¤¹¤¬¡¢¤É¤Î¤è¤¦¤Ë¤·¤¿¤é¥¨¥é¡¼¤ÈȽÃÇ > ¤Ç¤¤ë¤Ç¤·¤ç¤¦¤«¡£ bash ¤Ê¤é PIPESTATUS ¤ò»È¤¨¤Ð¤è¤¤¤Ç¤¹¤¬¡¢sh ¤Ç¤¢¤ì¤Ð ½ªÎ»¥¹¥Æ¡¼¥¿¥¹¤Ï¼èÆÀ¤Ç¤¤Ê¤¤¤È»×¤¤¤Þ¤¹¡£¤·¤ç¤Ü¤¤¤Ç¤¹¤¬¡¢ ¥Ñ¥¤¥×¤ò»È¤¦¤Î¤ò¤ä¤á¤ë¤Î¤¬¤è¤¤¤«¤È»×¤¤¤Þ¤¹¡£ >>4924 ¤Ù¤¿ > WindowsXP IE6.0 SP2 ¤ÎÊ̤ÎüËö¤«¤é½ñ¤¹þ¤ß¤ò > ¤ª¤³¤Ê¤Ã¤¿¤é°Ê²¼¤Î¥¨¥é¡¼²èÌ̤¬É½¼¨¤µ¤ì¤Þ¤·¤¿¡£ IP ¥¢¥É¥ì¥¹¤äȯ¸ÀÆâÍƤʤɤ«¤é SPAM ¤ÈȽÄꤵ¤ì¤¿¤Î¤«¤â¤·¤ì¤Þ¤»¤ó¡£ ÆäËȽÄêÀºÅ٤ι⤤¤â¤Î¤Ç¤Ï¤Ê¤¤¤Î¤Ç¡¢ÉÑȯ¤¹¤ë¤è¤¦¤Ê¤é¤´Ï¢Íí¤¯¤À¤µ¤¤¡£ |
>>4927 68user ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ sh ¤Ç¤¤Ê¤¤¤ó¤Ç¤¹¤Í¡£ ½ÐÎÏ·ë²Ì¤¬¤Ê¤±¤ì¤Ð¡¢½ÐÎÏ·ë²Ì¤ò¥Ñ¥¤¥×¤ÇÅϤµ¤Ê¤±¤ì¤Ð ¡Ö&&¡×¤Ç¤¤¤±¤ë¤Î¤Ç¤Ê¤¤¤«¤Èʤ¤¤¤Þ¤¹¤¬¡£ ¥Ñ¥¤¥×¤ò»È¤ï¤º¸Ä¡¹¤Ë¹Ô¤¤¤Þ¤¹¡£ |
Solaris8 ¤Ê¤Î¤Ç¤¹¤¬¡¢¡Ö/var/log/syslog¡×¤Ë¡¢ TCP¥³¥Í¥¯¥·¥ç¥ó¤Î¥í¥°¤ò½ÐÎϤµ¤»¤¿¤¤¤Î¤Ç¤¹¡£ telnet¡¢ftp¤Ê¤É¡¢Àܳ¤·¤¿¥í¥°¤ò½ÐÎϤ·¤¿¤¤¤Î ¤Ç¤¹¡£ ¤É¤Î¤è¤¦¤Ë¤¹¤ì¤Ð¤è¤¤¤Î¤Ç¤·¤ç¤¦¤«¡£ ¡Ö/etc/syslog.conf¡×¤Ë¤Ï¡¢°Ê²¼¤ÎÍͤʵ½Ò¤ò¤·¤Æ¤¤¤Þ¤¹¡£ user.notice /var/log/syslog syslog¤Î¥Ç¡¼¥â¥ó¤âºÆµ¯Æ°¤·¤¿¤Î¤Ç¤¹¤¬¡¢½ÐÎϤµ¤ì¤Þ¤»¤ó¡£ |
>>4829 68user ftp¤Î¥í¥°¤ò¼èÆÀ¤¹¤ëAIX¤Î¾ì¹ç¤ÎÎã¤Ç¤¹¡£ #vi /etc/inetd.conf ¡Êftp¤Î¥¨¥ó¥È¥ê¡¼¤ÇºÇ¸å¤Ë¡Ö-l¡×¤Þ¤¿¤Ï¡Ö-d¡×¥ª¥×¥·¥ç¥ó¤òÄÉ²Ã¡Ë ftp .... /usr/sbin/ftpd ftpd -l ¤Þ¤¿¤Ï¡¡ftpd -d (žÁ÷¥Õ¥¡¥¤¥ë̾¤ò³Îǧ¤¹¤ë¤À¤±¤Ç¤¢¤ì¤Ð -l ¥ª¥×¥·¥ç¥ó¤ÎÊý¤¬¥í¥°¤¬¾¯¤Ê¤¯¤ÆºÑ¤ß¤Þ¤¹) #refresh -s inetd ¡Êinetd¥Ç¡¼¥â¥ó¤ò¥ê¥Õ¥ì¥Ã¥·¥å¡Ë #vi /etc/syslog.conf ¡ÊsyslogÀßÄê¥Õ¥¡¥¤¥ë¤Ëftp¤Î¥í¥°¤ò¼èÆÀ¤¹¤ë¤¿¤á¤Î¥¨¥ó¥È¥ê¤òÄÉ²Ã¡Ë daemon.info /tmp/ftpd.log (daemon.debug¤Ç¤¢¤ì¤Ð¤â¤¦¾¯¤·¾Ü¤·¤¤¾ÜºÙ¤¬³Îǧ¤Ç¤¤Þ¤¹) #touch /tmp/ftpd.log ¡Ê¥í¥°¥Õ¥¡¥¤¥ë¤òºîÀ®¡Ë #refresh -s syslogd ¡Êsyslog¥Ç¡¼¥â¥ó¤òºÆµ¯Æ°¡Ë |
>>4931 ¥Ð¥ó¥¬¡¼¥É ¤´¤á¤ó¤Ê¤µ¤¤¡£ 4929¤Ø¤Î¥³¥á¥ó¥È¤Ç¤·¤¿¡£ |
>>4932 ¥Ð¥ó¥¬¡¼¥É ¤ªÎ餬Ã٤쿽¤·Ìõ¤¢¤ê¤Þ¤»¤ó¡£ ¤´ÀâÌÀ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ ¤É¤Á¤é¤Ë¤·¤Æ¤â¥Ç¡¼¥â¥ó¤ÎºÆµ¯Æ°¡Ê¥ê¥Õ¥ì¥Ã¥·¥å¡Ë¤¬ ɬÍפʤó¤Ç¤¹¤Í¡£ |
Solaris8 ¤Ê¤Î¤Ç¤¹¤¬¡¢¥·¥§¥ë¤ò¼Â¹Ô¤¹¤ëºÝ¡¢ ./¥·¥§¥ë̾¤È¤·¤Ê¤¤¤Èµ¯Æ°¤Ç¤¤Þ¤»¤ó¡£ ¡Ö./¡×¤Çµ¯Æ°¤¹¤ë¤Ë¤Ï¤É¤¦¤·¤¿¤é¤è¤¤¤Î¤Ç¤·¤ç¤¦¤«¡£ ¡Ö./¡×¤Çµ¯Æ°¤Ç¤¤ë¥¢¥«¥¦¥ó¥È¤¬¤¢¤ë¤Î¤Ç¡¢°ã¤¤¤òÈæ¤Ù¤Æ¤ß¤ë¤È PATH¤ÎÊÑ¿ô¤¬°Û¤Ê¤Ã¤Æ¤¤¤Þ¤·¤¿¡£ PATH=./:/usr/bin¡¦¡¦¡¦¡¦¡¦ ¤È¤« PATH=¡¦¡¦¡¦¡¦/usr/bin: PATHÊÑ¿ô¤ÎÃæ¤Ë¡¢¡Ö./¡×¤ÎÀßÄ꤬¤¢¤ë¡£ PATHÊÑ¿ô¤¬¡Ö¡§¡×¤Ç½ª¤ï¤Ã¤Æ¤¤¤ë¡£ ¡Ö./¡×¤ò»ØÄꤷ¤Ê¤¤¤ÈÆ°¤«¤Ê¤¤¥¢¥«¥¦¥ó¥È¤Ï¡¢Î¾Êý¤¬¤Ê¤¤¾õ¶·¤È ¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£ ¤É¤Î¤è¤¦¤Ë´Ä¶ÊÑ¿ô¤òÀßÄꤹ¤ì¤Ð¤è¤¤¤Î¤Ç¤¹¤«¡£ |
>>4934 ¤Ù¤¿ > ¡Ö./¡×¤Çµ¯Æ°¤¹¤ë¤Ë¤Ï¤É¤¦¤·¤¿¤é¤è¤¤¤Î¤Ç¤·¤ç¤¦¤«¡£ ¡Ö./¡×¤Ê¤·¤Çµ¯Æ°¤·¤¿¤¤¤È¤¤¤¦¤³¤È¤Ç¤·¤ç¤¦¤«¡© PATH ´Ä¶ÊÑ¿ô¤Ë ./ ¤ò´Þ¤á¤ì¤Ð²Äǽ¤Ç¤¹¤¬¡¢¤ª´«¤á¤Ï¤·¤Þ¤»¤ó¡£ ÆÃÄê¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Ë¥¹¥¯¥ê¥×¥È¤ò½¸¤á¤Æ¡¢¤½¤Î¥Ç¥£¥ì¥¯¥È¥ê¤ò PATH ´Ä¶ÊÑ¿ô¤Ë´Þ¤á¤ëÊý¤¬¤è¤¤¤È»×¤¤¤Þ¤¹¡£ ¤Ê¤ª¡¢Æ±¤¸Ì¾Á°¤Î¥³¥Þ¥ó¥É¡Ê¥¹¥¯¥ê¥×¥È¡Ë¤¬Ê£¿ô¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Ë ¸ºß¤¹¤ë¾ì¹ç¤Ï¡¢PATH ´Ä¶ÊÑ¿ô¤ÇÀè¤Ë¸«¤Ä¤«¤Ã¤¿¥³¥Þ¥ó¥É ¡Êº¸Â¦¤Î¥Ñ¥¹¤«¤é½çÈÖ¤Ëõ¤·¤Ë¹Ô¤¤Þ¤¹¡Ë¤¬¼Â¹Ô¤µ¤ì¤Þ¤¹¡£ |
>>4934 ¤Ù¤¿ PATH ¤Ë . ¤ò´Þ¤á¤Ê¤¤Íýͳ¤Ï°Ê²¼¤Î¤È¤ª¤ê¡£ ¡¦¥»¥¥å¥ê¥Æ¥£¥Û¡¼¥ë¤È¤Ê¤ë¡£PATH=.:/bin:/usr/bin:/usr/local/bin ¤È¤Ê¤Ã¤Æ¤¤¤Æ¡¢ cd ~foo; ls ¤È¤·¤¿¤È¤¤Ë /home/foo/ls ¤¬Â¸ºß¤·¤¿¤é¡¢¤½¤Î¥×¥í¥°¥é¥à¤ò¼Â¹Ô ¤·¤Æ¤·¤Þ¤¦¡£cd /tmp; ls ¤âƱÍÍ¡£¤½¤Î¥×¥í¥°¥é¥à¤¬¤É¤ó¤Ê°¤µ¤ò¤¹¤ë¤«¤Ï¤ï¤«¤é¤Ê¤¤¡£ ¡¦PATH ¤Ë . ¤ò²Ã¤¨¤ë¤È¡¢¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê¤Ë¤è¤Ã¤Æ¼Â¹Ô¤µ¤ì¤ë¥³¥Þ¥ó¥É¤¬°Û¤Ê¤ë ²ÄǽÀ¤¬¤¢¤ë¤¿¤á¡¢ÀâÌÀ¤¬¤á¤ó¤É¤¯¤µ¤¤¤·¡¢¤Ï¤Þ¤ê¤ä¤¹¤¯¤Ê¤ë¡£Î㤨¤Ð /bin ¤È /usr/bin ¤ËƱ̾¤Î¥³¥Þ¥ó¥É¤¬¤¢¤ë¤È¤·¤Æ¡¢¥³¥Þ¥ó¥É foo ¤ò¥¿¥¤¥×¤·¤¿¤È¤¤Ë¡¢ - ¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê¤¬ /usr/bin ¤Î¾ì¹ç¤Ï /usr/bin/foo ¤¬¼Â¹Ô¤µ¤ì¤ë - ¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê¤¬ /usr/bin °Ê³°¤Î¾ì¹ç¤Ï /bin/foo ¤¬¼Â¹Ô¤µ¤ì¤ë ¤È¤¤¤¦¤Î¤Ï¤ï¤«¤ê¤Å¤é¤¤¡£ ¡¦csh¡¦tcsh¡¦bash¡¦zsh ¤Ê¤É¡¢º£¤É¤¤Ê¥·¥§¥ë¤ò»È¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢ ./ ¤«¤é¥¿¥¤¥×¤·¤¿Êý¤¬¥Õ¥¡¥¤¥ë̾Êä´°¤ò»È¤¨¤ë¤¿¤á¡¢ÆþÎϤ¬Â®¤¤¡£ |
>> 4935 >> 4936 ÊÖ»ö¤¬ÃÙ¤¯¤Ê¤Ã¤Æ¤¹¤ß¤Þ¤»¤ó¡£ ʬ¤«¤ê°×¤¯ÀâÌÀ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ ÊÙ¶¯¤Ë¤Ê¤ê¤Þ¤¹¡£ |
C¥·¥§¥ë¤Ç¤Î¥ê¥À¥¤¥ì¥¯¥·¥ç¥ó¤Ë¤Ä¤¤¤Æ¤Ê¤Î¤Ç¤¹¤¬ ¥³¥Þ¥ó¥É¤Î¼Â¹Ô·ë²Ì¤Ç¡¢É¸½à¥¨¥é¡¼½ÐÎϤò¼Î¤Æ¤Æ¡¢É¸½à½ÐÎÏ ¤À¤±¤ò¸«¤¿¤¤¤Î¤Ç¤¹¤¬¤É¤¦¤¹¤ì¤Ð¤è¤¤¤Î¤Ç¤¹¤«¡£ cat file.txt >& /dev/null ¤Ç¤Ï¡¢É¸½à½ÐÎÏ¡¢É¸½à¥¨¥é¡¼¶¦¤Ë¼Î¤Æ¤é¤ì¤Þ¤¹¤¬¡¢ ɸ½à¥¨¥é¡¼¤ò¼Î¤Æ¤Æ¡¢É¸½à½ÐÎϤòɽ¼¨¤·¤¿¤¤¡£ cat file.txt 2 >& /dev/null cat file.txt >2& /dev/null cat file.txt >& 2 /dev/null cat file.txt > /dev/tty >2 /dev/null cat file.txt > /dev/tty >& /dev/null ¤È¤ä¤Ã¤Æ¤ß¤¿¤Î¤Ç¤¹¤¬¡¢¤É¤ì¤â¾å¼ê¤¯¤¤¤¤Þ¤»¤ó¡£ ¤É¤¦¤¹¤ì¤Ð¤è¤¤¤Î¤Ç¤·¤ç¤¦¤«¡£ ´Ä¶¤Ï¡¢ Solaris8¡¡C¥·¥§¥ë ¤Ç¤¹¡£ |
>>4942 ¤Ù¤¿ tty °¸¤Ç¤è¤¤¤Ê¤é¡¢¥µ¥Ö¥·¥§¥ë¤ò»È¤Ã¤Æ ( cat file.txt > /dev/tty ) >& /dev/null ¤Ç¤¹¡£ |
>> 4944 ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ > tty °¸¤Ç¤è¤¤¤Ê¤é¡¢¥µ¥Ö¥·¥§¥ë¤ò»È¤Ã¤Æ > ( cat file.txt > /dev/tty ) >& /dev/null > ¤Ç¤¹¡£ ½ÐÍè¤Þ¤·¤¿¡£ tty °¸¤Ç¤è¤¤¤Ê¤é¡¢¥µ¥Ö¥·¥§¥ë¤ò»È¤Ã¤Æ tty ¤ò»È¤ï¤Ê¤¤ÊýË¡¤â¤¢¤ë¤Î¤Ç¤¹¤«¡£¤¢¤ë¤Î¤Ç¤·¤¿¶µ¤¨¤Æ¤¯¤À¤µ¤¤¡£ ¥µ¥Ö¥·¥§¥ë¤È¤Ï¡£ ¡Ö( command )¡×¤È¤Ï¤É¤Î¤è¤Ê»È¤¤Êý¤Ç¤·¤ç¤¦¤«¡£ Îɤ¤°Æ¤¬»×¤¤É⤫¤Ð¤Ê¤«¤Ã¤¿¤Î¤Ç¡¢¡Öcat file.txt > /dev/tty¡×¤Ç ɽ¼¨¤¬¤Ç¤¤¿¤Î¤Ç¡¢ /dev/tty ¤ò»È¤¨¤Ð¾å¼ê¤¯¤Ç¤¤ë¤Î¤Ç¤Ï¤Ê¤¤¤«¤È¡£ |
>>4944 ¤Ù¤¿ tty ¤ò»È¤ï¤Ê¤¤¤Ê¤é¡¢ ( cat file.txt > out.txt ) >& /dev/null ¤Ê¤É¤È¥Õ¥¡¥¤¥ë¤ËÊݸ¤¹¤ë¡£ ¤¢¤ë¤¤¤Ï mknod ¤ä mkfifo ¤Ç̾Á°ÉÕ¤¥Ñ¥¤¥×¤òºî¤Ã¤Æ¤½¤³¤Ë ή¤¹¤Ê¤É (¤µ¤¹¤¬¤Ëɸ½à¥¨¥é¡¼½ÐÎϤò¼Î¤Æ¤ë¤¿¤á¤Ë¤³¤³¤Þ¤Ç ¤ä¤ë¤Î¤Ï¥Ð¥«¥Ð¥«¤·¤¤¤Ç¤¹¤¬)¡£ mkfifo out cat out & ( cat file.txt > out ) >& /dev/null ¤¢¤ë¤¤¤Ï sh -c "ls cat file.txt 2>/dev/null" ¤Ê¤É¤È sh ¤Çƨ¤²¤ë¼ê¤â¤¢¤ê¤Þ¤¹¡£ csh ¤Ç¤ä¤ë¤Ê¤é¡¢¤³¤ì°Ê³°¤ÎÊýË¡¤Ï¤ª¤½¤é¤¯¤Ê¤¤¤Ç¤¹¡£ > ¥µ¥Ö¥·¥§¥ë¤È¤Ï¡£ > ¡Ö( command )¡×¤È¤Ï¤É¤Î¤è¤Ê»È¤¤Êý¤Ç¤·¤ç¤¦¤«¡£ ¤³¤Á¤é¤ò¤É¤¦¤¾¡£ http://x68000.q-e-d.net/~68user/unix/pickup?%A5%B5%A5%D6%A5%B7%A5%A7%A5%EB |