ÌäÂê¤òÅꤲ¤Ã¤Ñ¤Ê¤·¤Ë¤·¤Æ¤¹¤¤¤Þ¤»¤ó¡£ 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 |
>> 4945 ¤´ÀâÌÀ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ Windows XP¤ÎÊÌüËö¤Ç½ñ¤¹þ¤ß¤ò¤·¤¿¤é ¡Ö¥¨¥é¡¼ : ÆâÉô¥¨¥é¡¼¤¬µ¯¤³¤ê¤Þ¤·¤¿¡£¡× ¤Î²èÌ̤¬É½¼¨¤µ¤ì¤Þ¤·¤¿¡£ ²¿¤«¤¢¤ë¤Î¤Ç¤·¤ç¤¦¤«¡£ |
¤³¤ó¤Ë¤Á¤Ï¡¥linux¤ò»È¤¤»Ï¤á¤¿¤â¤Î¤Ç¤¹¡¥ ¥Ñ¥¤¥×¤Ë´Ø¤¹¤ë¼ÁÌä¤Ç¤¹¡¥´Ä¶¤ÏVine Linux ¤Îbash¤Ç¤¹¡¥ ¤¢¤ë¥Õ¥¡¥¤¥ë̾(¤³¤³¤Ç¤Ïtestfile)¤Î¤â¤Î¤ò¸¡º÷¤·¤Æ¡¤ ¤µ¤é¤Ë¤½¤ÎÃæ¿È¤Ë"test"¤È¤¤¤¦Ê¸»úÎó¤ò´Þ¤à¤«¤É¤¦¤«¤ò ÃΤꤿ¤¤¤È»×¤Ã¤Æ¤¤¤Þ¤¹¡¥ ÂоݤΥե¡¥¤¥ë¤¬¤Ò¤È¤Ä¤È¤Ï¸Â¤ê¤Þ¤»¤ó¡¥Î㤨¤Ð¡¤ ........... ../Data1/testfile¡¡¢Í¡ÊÃæ¿È¡ËThis is test file. ........... ../Data2/testfile ¢Í (Ãæ¿È) This is hoge hoge. ¤È¤¤¤Ã¤¿´¶¤¸¤ÇƱ¤¸Ì¾Á°¤Î¥Õ¥¡¥¤¥ë¤¬Ê̤Υǥ£¥ì¥¯¥È¥ê¤Ë¤¢¤ê¤Þ¤¹¡¥ cat¡¤find, grep¤òÁȤ߹ç¤ï¤»¤ì¤Ð½ÐÍ褽¤¦¤Êµ¤¤Ï¤·¤Æ¤¤¤ë¤Î¤Ç¤¹¤¬¡¤ find¤·¤Æ¥ê¥¹¥Èɽ¼¨¤µ¤ì¤¿¥Õ¥¡¥¤¥ë̾¤ò°ú¿ô¤È¤·¤Æcat¥³¥Þ¥ó¥É¤Ë ÅϤ¹¤³¤È¤¬¤Ç¤¤Þ¤»¤ó¡¥ ¼«Ê¬¤Ê¤ê¤Ë¤¤¤í¤¤¤í¸¡º÷¤·¤Þ¤·¤¿¤¬¡¤¤è¤¯¤ï¤«¤ê¤Þ¤»¤ó¤Ç¤·¤¿¡¥¡¥ ¤è¤í¤·¤¯¤´¶µ¼ø¤¯¤À¤µ¤¤¡¥ |
>>4947 ÁÇ¿Í ¿Æ¥Ç¥£¥ì¥¯¥È¥ê°Ê²¼¤Î testfile ¤È¤¤¤¦¥Õ¥¡¥¤¥ë̾¤Î¥Õ¥¡¥¤¥ëÃæ¤Ë test ¤È¤¤¤¦Ê¸»úÎ󤬤¢¤ë¤â¤Î¤ò¥ê¥¹¥È¥¢¥Ã¥×¡¢¤Ç¤¢¤ì¤Ð % find ../ -name testfile | xargs grep -l test ¤Ç¤·¤ç¤¦¤«¡£¤½¤ì¤ò cat ¤¹¤ë¤Ê¤é % find ../ -name testfile | xargs grep -l test | xargs cat ¤Ç¤¹¤«¤Í¡£ |
>>4948 68user ¤Ç¤¤Þ¤·¤¿¡ªÅú¤¨¤Ïxargs¤Ç¤·¤¿¤«¡¥ ÊÙ¶¯ÉÔ¤Ƕ²½Ì¤Ç¤¹¡¥¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤·¤¿¡¥ |
RSA£±¤Î¥×¥í¥°¥é¥à¤ò¼Â¹Ô¤¹¤ë¤Ë¤¢¤Ã¤¿¤Ã¤Æ¥¨¥é¡¼¤¬Â¿¤¯¤Ç¤Þ¤¹¡£¤³¤ì¤Î¥Ø¥Ã¥À¥Õ¥¡¥¤¥ë¤Ï¤É¤³¤Ë¤¢¤ë¤Î¤Ç¤·¤ç¤¦¤«¡£ |
>>4950 º´Æ£¾æ»Õ OpenSSL ¤ËƱº¤µ¤ì¤Æ¤¤¤Þ¤¹¤Î¤Ç¡¢OpenSSL ¤ò¥¤¥ó¥¹¥È¡¼¥ëºÑ¤ß¤Ç¤¢¤ì¤Ð /usr/include/openssl ¤ä /usr/local/openssl/include ¤Ê¤É¤Ë¤¢¤ë¤Ï¤º¤Ç¤¹¡£ ¥³¥ó¥Ñ¥¤¥ë»þ¤Ë -I /usr/include/openssl ¤Ê¤É¤Î¥ª¥×¥·¥ç¥ó¤òÉղ䷤Ƥ¯¤À¤µ¤¤¡£ |
½é¤á¤ÆÅê¹Æ¤·¤Þ¤¹¡£ Á´¤¯¤Î½é¿´¼Ô¤Ç¤¹¤¬¡¢¼¡¤Î¤³¤È¤ò¤ª¿Ò¤Í¤·¤Þ¤¹¡£ Debian4.0¤Ç¤¹¤¬¡¢¥Ç¥¹¥¯¥È¥Ã¥×¤Ë¥¢¥¤¥³¥ó¤òºîÀ®¤·¡¢¥¯¥ê¥Ã¥¯¤¹¤ë¤È ¥×¥í¥°¥é¥à¤òµ¯Æ°¤¹¤ë¤è¤¦¤Ë¤·¤¿¤¤¤Î¤Ç¤¹¤¬¤É¤Î¤è¤¦¤Ë¤¹¤ì¤Ð¤¤¤¤¤Î ¤Ç¤·¤ç¤¦¤«¡£ #su - abc ¡Çabc¤Ç¥í¥°¥¤¥ó¤·¡¢¡Ösh /usr/lib/scripts/claim/ORC_CLAIM_SERVER.sh 5001 /var/tmp¡× kterm¤Ëµ½Ò¤Ê¤É¤ª¿Ò¤Í¤·¤Þ¤¹¡£ |
>>4952 kawasaki ¤ä¤êÊý¤Ï¥¤¥ó¥¹¥È¡¼¥ë¤·¤¿¥Ç¥¹¥¯¥È¥Ã¥×´Ä¶ (GNOME ¤È¤« KDE ¤È¤«) ¤Ë¤è¤ë¤È»×¤¤¤Þ¤¹¡£ ¤¬¡¢¤ª»È¤¤¤Î¥Ç¥¹¥¯¥È¥Ã¥×´Ä¶¤ò¤ª¶µ¤¨¤¤¤¿¤À¤¤¤¿¤È¤·¤Æ¤â¡¢¤³¤³¿ôǯ¤Ï UNIX ·Ï ¥Ç¥¹¥¯¥È¥Ã¥×´Ä¶¤ò¤¤¤¸¤Ã¤Æ¤¤¤Ê¤¤¤Î¤Ç¡¢¤ï¤¿¤·¤Ï¤µ¤Ã¤Ñ¤ê¤ï¤«¤ê¤Þ¤»¤ó¡£ |
½é¤á¤Þ¤·¤Æ¡£ ¤Á¤ç¤Ã¤Èµ¤¤Ë¤Ê¤Ã¤¿¤Î¤Ç¸À¤ï¤»¤Æ²¼¤µ¤¤¡£ UNIX¤ÎÉô²° ¥³¥Þ¥ó¥É¸¡º÷: Mach¤Ç¤ÎÀâÌÀ¤Ç¡¢ ȯ²»¤Ï¡¢ÉáÄ̤ʤé [¤Þ¤Ã¤Ï] ¤¬Àµ¤·¤¤¤È»×¤¦¤¬¡¢¥¢¥á¥ê¥«¿Í¤Ï "ch" ¤Îȯ²»¤¬¤Ç¤¤Ê¤¤¤é¤·¤¯¤Æ [¤Þ¡¼¤¯] [¤Þ¤Ã¤¯] ¤È¤¤¤Ã¤Æ¤¤¤ë (ȯ²»¤Ç¤¤Ê¤¤¤è¤¦¤Ê̾Á°¤òÉÕ¤±¤ë¤Ê¤È¸À¤¤¤¿¤¤)¡£ ¤È¤¢¤ê¤Þ¤¹¤¬¡¢È¯²»¤Ç¤¤Ê¤¤¤ó¤¸¤ã¤Ê¤¯¤Æ¡¢¤½¤¦¤¤¤¦¥¹¥Ú¥ë¤À¤È¡¢ ±Ñ¸ìŪ¤Ë¤Ï¡¢¥Þ¡¼¥¯¤Ã¤Æ¸Æ¤Ö¤À¤±¤Ç¤¹¡£h¤Î2¤ÄÁ°¤Ï¡¢a¤Ä¤Þ¤ê¥¨¥¤¤Ã¤Æȯ²»¤·¡¢ c¤Ï¡¢´ðËÜŪ¤Ë¤Ï¡¢¥Ã¥¯¤Ã¤Æȯ²»¤Ë¤Ê¤ê¡¢ ²¿¤â¹Í¤¨¤º¤Ë¤Ä¤Ê¤²¤ÆÆɤà¤È¡¢¥Þ¡¼¥¯¤Ã¤ÆÆɤߤޤ¹¡£ ¤Ç¡¢¤Ç¤â¤Ê¤ó¤Ç¡¢¥Þ¥Ã¥Ï¤¬Àµ¤·¤¤¤«¤È¸À¤¦¤È¡¢ ¤³¤ì¤Ï¡¢¥è¡¼¥í¥Ã¥Ñ·Ï¤Î¸À¸ì¤Î¿¤¯¤¬¡¢ mach¤Ã¤Æ½ñ¤¤¤Æ¤Þ¤Ã¤Ï¤Ã¤ÆÆɤफ¤é¤Ç¤¹¡£ ȯ²»¤Ç¤¤Ê¤¤¤ï¤±¤¸¤ã¤Ê¤¤¤Ç¤¹¤è^^; |
>>4954 ucc¤³¡¼¤Ò¡¼ ¤´»ØŦ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£¤¬¡¢ÀµÄ¾¤Ê¤È¤³¤í¤ò¿½¤·¤Þ¤¹¤È¡¢³Ø¤¬¤Ê¤¤¤Î¤Ç ¿¿µ¶¤Î¤Û¤É¤¬È½ÃǤǤ¤Þ¤»¤ó¡£¤è¤Ã¤Æ¡¢³ºÅö¥³¥ó¥Æ¥ó¥Ä¤è¤ê¡¢ >>4954 ucc¤³¡¼¤Ò¡¼ ¤Îȯ¸À¤Ë¥ê¥ó¥¯¤òÄ¥¤é¤»¤Æ¤¤¤¿¤À¤¤Þ¤¹¤Î¤Ç¡¢¤¢¤È¤Ï¤ªÆɤߤ¤¤¿¤À¤¤¤¿Êý¤Ë ¤´È½ÃǤ¤¤¿¤À¤¯¤³¤È¤Ç¤´Î»¾µ¤¯¤À¤µ¤¤¡£ |
¤¤¤Ä¤âÊØÍø¤Ë»²¾È¤·¤Æ¤¤¤Þ¤¹¡£ ls¥³¥Þ¥ó¥É¤Î¾Ò²ð¥Ú¡¼¥¸(http://x68000.q-e-d.net/~68user/unix/pickup?ls)¤Ç ¡Öman Solaris10 ls(1)¡×¤Î¥ê¥ó¥¯À褬´Ö°ã¤¨¤Æ¤¤¤ë¤Î¤Ëµ¤¤¬¤Ä¤¤¤¿¤Î¤Ç¤´Ï¢Íí¤Ç¤¹¡£ Àµ¤·¤¯¤Ï¡¢ ¡Öhttp://docs.sun.com/app/docs/doc/819-1210/ls-1?l=ja&a=view&q=ls¡×¤«¤Ê¡© |
>>4957 ¤¿¤± > ¡Öman Solaris10 ls(1)¡×¤Î¥ê¥ó¥¯À褬´Ö°ã¤¨¤Æ¤¤¤ë¤Î¤Ëµ¤¤¬¤Ä¤¤¤¿¤Î¤Ç¤´Ï¢Íí¤Ç¤¹¡£ ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£Sun ¤Î¥Ú¡¼¥¸¤Ï¤¿¤Þ¤Ë URL ¤¬ÊѤï¤ë¤ó¤Ç¤¹¤è¤Í¡Ä¡£ ºÇ¿·¾ðÊó¤Ç¹¹¿·¤·¤Æ¤ª¤¤Þ¤·¤¿¡£ NetBSD ¤Î manpage ¤Ø¤Î¥ê¥ó¥¯¤âɽ¼¨¤µ¤ì¤Ê¤¯¤Ê¤Ã¤Æ¤¤¤Þ¤¹¤¬¡¢¤½¤Î¤¦¤Áľ¤·¤Þ¤¹¡£ |
SEÊ罸¤Î·ï¤Ç½ñ¤¹þ¤ß¤µ¤»¤Æ¤¤¤¿¤À¤¤Þ¤·¤¿¡£ ÂçÊѶ½Ì£¤¬¤¢¤ê¤Þ¤¹¤Î¤Ç¡¢°ìÅپܺ٤ò¶µ¤¨¤Æ¤¤¤¿¤À¤±¤Ê¤¤¤Ç¤·¤ç¤¦¤«¡£ ¤´Ï¢Íí¤ò¤ªÂÔ¤Á¤·¤Æ¤¤¤Þ¤¹¡£ |
¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£¥á¡¼¥ë¤òÁ÷¤ê¤Þ¤¹¡£ |
Perl¤Ç¡¢Á°Æü¤ÎAM9»þ°Ê¹ß¤ËºîÀ®¤µ¤ì¤¿¥Õ¥¡¥¤¥ë¤ò ¼èÆÀ¤·¤¿¤¤¤Î¤Ç¤¹¤¬¡¢¤É¤Î¤è¤¦¤ËPerl¤ò½ñ¤±¤Ð¤è¤¤ ¤Î¤Ç¤·¤ç¤¦¤«¡£ Perl¤Î¥·¥§¥ë¥¹¥¯¥ê¥×¥È¤òµ¯Æ°¤¹¤ëÁ°Æü¤ÎAM9°Ê¹ß ¤«¤é¡¢¼Â¹ÔÆü¤Þ¤Ç¤Î´Ö¤ËºîÀ®¤µ¤ì¤¿¥Õ¥¡¥¤¥ë¤ò¼èÆÀ ¤·¤¿¤¤¤Î¤Ç¤¹¡£ ¼Â¹ÔÆü¤ÎÁ°Æü¤Î9»þ¤È¤¤¤¦¤Î¤Ï°Ê²¼¤ÎÊýË¡¤Ç¼èÆÀ¤Ç¤¤ë ¤Î¤Ç¤¹¤¬¡¢¼èÆÀ¤·¤¿ÆüÉդȥե¡¥¤¥ëºîÀ®ÆüÉÕ¤òÈæ³Ó¤·¡¢ Âоݤ«Èݤ«¤òȽÃǤ·¤Æ¡¢É¬Íפʤâ¤Î¤À¤±¤ò¼èÆÀ¤¹¤ë ÊýË¡¤¬Ê¬¤«¤ê¤Þ¤»¤ó¡£ ¤É¤Î¤è¤Ë½ñ¤±¤Ð¤è¤¤¤Î¤Ç¤·¤ç¤¦¤«¡£ ¡Ö¼Â¹ÔÆü¤ÎÁ°Æü¤Î9»þ¡×¤Ï¡¢ -------------------------------- #!/usr/local/bin/perl $tm = time - (24 * 60 * 60 * 1); ($sec, $min, $hour, $day, $mon, $year) = (localtime($tm))[0..5]; $now = sprintf("%04d/%02d/%02d %02d:%02d:%02d",$year+1900,$mon+1,$day,$hour,$min,$sec); print $now, "\n"; -------------------------------- #!/usr/local/bin/perl use POSIX 'strftime'; $tm = time - (24 * 60 * 60 * 1); my $now = strftime "%Y/%m/%d %H:%M:%S", localtime($tm); print $now, "\n"; |
>> 4974 ´Ä¶¤ò½ñ¤Ëº¤ì¤Þ¤·¤¿¡£ ´Ä¶¤Ï¡¢ Solaris8 Perl v5.8.5 |
>>4974 ¤Ù¤¿ >>4975 ¤Ù¤¿ Solaris ¤Ê¤éŬÅö¤Ê¥Õ¥¡¥¤¥ë¤òºî¤Ã¤Æ¡¢touch ¥³¥Þ¥ó¥É¤Ç¥¿¥¤¥à¥¹¥¿¥ó¥×¤ò Á°Æü 08:59:59 ¤Ë¤·¤Æ¤ª¤¤¤Æ¡¢find . -newer foo ¤È¤¹¤ë¤Î¤¬°ìÈÖ´Êñ¤«¤È »×¤¤¤Þ¤¹¡£ FreeBSD ¤Ê¤é find -mtime -99h ¤È¤«¡¢Linux ¤Ê¤é find -mmin -9999 ¤È¤« ¤Ç¤¤Þ¤¹¤¬ (99 ¤ä 9999 ¤Ï·×»»¤·¤Æµá¤á¤ë)¡¢·ë¶É¤Ï -newer ¤ÎÊý¤¬´Êñ¤Ê µ¤¤¬¤·¤Þ¤¹¡£ ¥â¥¸¥å¡¼¥ë»È¤¦¤Ê¤é File::Find http://perldoc.perl.org/File/Find.html File::Find::Rule http://search.cpan.org/~rclamp/File-Find-Rule-0.28/lib/File/Find/Rule.pm ¤¢¤¿¤ê¤«¤È»×¤¤¤Þ¤¹¤¬¡¢¤¤¤º¤ì¤âÁ°Æü9»þ¤ÈÈæ³Ó¤¹¤ëÉôʬ¤Ï¼ê¤Ç½ñ¤«¤Ê¤¤¤È ¤¤¤±¤Ê¤¤¤è¤¦¤Ë¸«¤¨¤Þ¤¹¤Î¤Ç¡¢¥¤¥Þ¥¤¥Á¤Ç¤¹¤Í¡£ |
>>4976 68user ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ ¤Þ¤¿¡¢ÊÖ»ö¤¬ÃÙ¤¯¤Ê¤Ã¤Æ¿½¤·Ìõ¤¢¤ê¤Þ¤»¤ó¡£ > find . -newer foo ¤Ç¤¹¤«¡£ ¥·¥§¥ë¤Ç¡¢find¤Î·ë²Ì¤ò¼èÆÀ¤¹¤ë¤³¤È¤â¹Í¤¨¤Þ¤·¤¿¡£ > ¤¢¤¿¤ê¤«¤È»×¤¤¤Þ¤¹¤¬¡¢¤¤¤º¤ì¤âÁ°Æü9»þ¤ÈÈæ³Ó¤¹¤ëÉôʬ¤Ï¼ê¤Ç½ñ¤«¤Ê¤¤¤È > ¤¤¤±¤Ê¤¤¤è¤¦¤Ë¸«¤¨¤Þ¤¹¤Î¤Ç¡¢¥¤¥Þ¥¤¥Á¤Ç¤¹¤Í¡£ Perl¤ò»È¤ª¤¦¤È¤·¤Æ¤¤¤¿¤Î¤Ç¡¢¼ê¤Ç½ñ¤«¤Ê¤¯¤Æ¤Ï¤¤¤±¤Ê¤¤¤È»×¤Ã¤Æ¤¤¤Þ¤·¤¿ ¤³¤ÎÉôʬ¤ÎÎɤ¤ÊýË¡¤¬¼Â¸½¤Ç¤¤Ê¤¯¤Æ¡£ ´Ä¶¾å¡¢¶µ¤¨¤Æ夤¤¿¥â¥¸¥å¡¼¥ë¤âÆþ¤ì¤ë¤³¤È¤¬¤Ç¤¤Þ¤»¤ó¡£ |
>>4977 ¤Ù¤¿ find . -newer foo ¤ÎÊýË¡¤ò½ñ¤¤¤Æ¤ª¤¤Þ¤¹¡£find ¤ò»È¤ï¤Ê¤¤¤Ê¤é¡¢ ºòÆü9»þ¤ÎÆü»þ (20090323090000) ¤ò Time::Local ¤Ç epoch time ¤Ë ľ¤·¤Æ¤ª¤¡¢stat() ¤¬ÊÖ¤¹ºÇ½ª¹¹¿·»þ¹ï¤ÈÈæ³Ó¤¹¤ì¤Ð¤è¤¤¤Ç¤·¤ç¤¦¡£ ------ my ($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst) = localtime(time()-60*60*24); my $timestamp = sprintf("%04d%02d%02d%02d%02d.%02d", $year+1900, $mon+1, $mday, 9, 0, 0); my $yeasterday_9am_file = "foo.txt"; system("touch -t $timestamp $yeasterday_9am_file"); open(IN, "find . -type f -newer $yeasterday_9am_file |"); while (<IN>){ chomp; print "$_\n"; } |
>> 4978 ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ ¶µ¤¨¤Æ¤¤¤¿¤À¤¤¤¿ÊýË¡¤Ç¤¹¤È¡¢Á°Æü£¹»þ¤Î¥¿¥¤¥à¥¹¥¿¥ó¥×¤Î ¼èÆÀ¤òPerl¤Ç¤ä¤ì¤Ð¤¢¤È¤Ï¡¢¥·¥§¥ë¥¹¥¯¥ê¥×¥È¤Ç¤â¤Ç¤¤Þ¤¹ ¤Í¡£ ¼Â¤Î¤È¤³¤í¡¢find¤ò»È¤ï¤Ê¤¤¡¢Perl¤Ç¤Îµ½Ò¡¢¸¯¤êÊý¤ò¶µ¤¨¤Æ ¤Û¤·¤¤¤Î¤Ç¤¹¤¬¡£ |
>>4978 68user > find ¤ò»È¤ï¤Ê¤¤¤Ê¤é¡¢ > ºòÆü9»þ¤ÎÆü»þ (20090323090000) ¤ò Time::Local ¤Ç epoch time ¤Ë > ľ¤·¤Æ¤ª¤¡¢stat() ¤¬ÊÖ¤¹ºÇ½ª¹¹¿·»þ¹ï¤ÈÈæ³Ó¤¹¤ì¤Ð¤è¤¤¤Ç¤·¤ç¤¦¡£ Time::Local ¤Ç epoch time ¤Ëľ¤·¤Æ¤Î¡Öepoch time¡×¤È¤Ï ¤Ê¤ó¤Ç¤·¤ç¤¦¤«¡£ |
linux¤ÎC¤Ç¥°¥é¥Õ¥£¥Ã¥¯¤ÎÊÙ¶¯¤¬¤·¤¿¤¯¤ÆX-Window¤Þ¤Çé¤êÃ夤¤¿¤Î¤Ï¤è¤«¤Ã¤¿¤ó¤Ç¤¹¤¬¡¢ ¤³¤³¢¤Î¥½¡¼¥¹¤ò¼Â¹Ô¤µ¤»¤è¤¦¤È¤·¤Æ¤â²¿¸Î¤«¥¨¥é¡¼¤¬½Ð¤Æ¤·¤Þ¤¤¤Þ¤¹¡£ http://x68000.q-e-d.net/~68user/xprogram/xlib-4.html °ì±þÎà»÷¤Îµ»ö¤¬¤Ê¤¤¤«¤É¤¦¤«Ä´¤Ù¤Æ¸«¤Þ¤·¤¿¤¬¡¢ No.8552¤¬¶á¤¤¤È»×¤¤¤Þ¤·¤¿¤¬Á´Á³Ê¬¤«¤ê¤Þ¤»¤ó¤Ç¤·¤¿¡£ ¤Á¤ã¤ó¤Èusr/include/X11¥Õ¥¡¥¤¥ë¤Ë Xlib.h¤ÈXutil.h¤Ï¤¢¤ê¤Þ¤¹¤·¡¢ ¥³¥ó¥Ñ¥¤¥ë¥ª¥×¥·¥ç¥ó¤â³èÍѤ·¤Æ¤ß¤Þ¤·¤¿¡Ä¡Ä Xlib.h¤ÈXutil.h¤Î°ÕÌ£¤âʬ¤«¤é¤Ê¤¯¤Æº¤µçÃæ¤Ç¤¹¡Ä¡Ä ¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ï¡¢gcc -o xlib-4-1 xlib-4-1.c -I /usr/include/X11 -L /usr/include/X11 ¥¨¥é¡¼¤Ï°Ê²¼¤Îʸ¤Ç¤¹ /tmp/cc2pF4g1.o: In function `main': xlib-4-1.c:(.text+0x9f): undefined reference to `XOpenDisplay' xlib-4-1.c:(.text+0x149): undefined reference to `XCreateSimpleWindow' xlib-4-1.c:(.text+0x198): undefined reference to `XSetStandardProperties' xlib-4-1.c:(.text+0x1c0): undefined reference to `XCreateGC' xlib-4-1.c:(.text+0x1e8): undefined reference to `XSetBackground' xlib-4-1.c:(.text+0x20a): undefined reference to `XSetForeground' xlib-4-1.c:(.text+0x232): undefined reference to `XCreateGC' xlib-4-1.c:(.text+0x25a): undefined reference to `XSetBackground' xlib-4-1.c:(.text+0x27c): undefined reference to `XSetForeground' xlib-4-1.c:(.text+0x294): undefined reference to `XMapRaised' xlib-4-1.c:(.text+0x2ec): undefined reference to `XFillArc' xlib-4-1.c:(.text+0x344): undefined reference to `XFillArc' xlib-4-1.c:(.text+0x352): undefined reference to `XFlush' collect2: ld ¤Ï¥¹¥Æ¡¼¥¿¥¹ 1 ¤Ç½ªÎ»¤·¤Þ¤·¤¿ |
>>4982 ¤Á¤Ó¥ô¥¡¥ë ¥ª¥×¥·¥ç¥ó -lX11 ¤¬Â¤ê¤Æ¤¤¤Þ¤»¤ó¡£¤Þ¤º¤Ï http://x68000.q-e-d.net/~68user/xprogram/xlib-1.html ¤«¤é¤É¤¦¤¾¡£ |
>>4980 ¤Ù¤¿ > ¡Öepoch time¡×¤È¤Ï¤Ê¤ó¤Ç¤·¤ç¤¦¤«¡£ http://oku.edu.mie-u.ac.jp/~okumura/php/date.php UNIX ¤Ç Epoch ¤È¤Ï¡¤¶¨ÄêÀ¤³¦»þ¡ÊUTC¡¤¤¤¤ï¤æ¤ë¥°¥ê¥Ë¥Ã¥¸É¸½à»þ GMT¡Ë 1970 ǯ¸µÃ¶ 0 »þ 0 ʬ¤Î¤³¤È¤Ç¤¹¡£ UNIX ¤ÎÆâÉô¤Ç¤Ï¤³¤Î½Ö´Ö¤«¤é¤ÎÉÿô¤Ç »þ¹ï¤òɽ¤·¤Æ¤¤¤Þ¤¹¡£ ¤Î¤³¤È¤Ç¤¹¡£ |
>>4983 68user °ìÄ̤ê¼Â¹Ô¤·¤Æ½ªÎ»¤µ¤»¤ë¤È¼¡¤Îʸ¾Ï¤¬½Ð¤ë¤ó¤Ç¤¹¤¬¡Ä¡Ä XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0.0" after 16 requests (14 known processed) with 0 events remaining. ¼«Ê¬¤ÇÄ´¤Ù¤Æ¡¢etc/X11/xorg.conf¤È¤¤¤¦¥Õ¥¡¥¤¥ë¤Ë¤¬½ÅÍפǤ¢¤ë¤È ¤ï¤«¤Ã¤¿¤Î¤Ç¡¢xorg.conf¤Ë Section "ServerFlags" Option "AllowEmptyInput" "off" EndSection¤ò Äɲ䷤褦¤È¤·¤Æ¤¤¤Þ¤¹¤¬¡¢ÉáÄ̤Υƥ¥¹¥È¥¨¥Ç¥£¥¿¤Ç¤Ï ¡Ö¤½¤Î¥Õ¥¡¥¤¥ë¤òÊݸ¤¹¤ë¤¿¤á¤ËɬÍפʸ¢¸Â¤¬¤¢¤ê¤Þ¤»¤ó¡£ÆþÎϤ·¤¿¾ì½ê¤¬Àµ¤·¤¤¤«³Îǧ¤·¤Æ¡¢¤â¤¦°ìÅټ¹Ԥ·¤Æ¤ß¤Æ²¼¤µ¤¤¡£¡× ¤È½Ð¤ÆÊݸ½ÐÍè¤Ê¤¤¤Î¤Ç¤¹¤¬¡¢¤É¤¦¤¹¤ì¤Ð¤¤¤¤¤Ç¤·¤ç¤¦¤«¡© ¤Þ¤¿¡¢¥³¥Þ¥ó¥É¥×¥í¥ó¥×¥È¤Ç¤â»î¤·¤Æ¸«¤Þ¤·¤¿¤¬¡¢ E325: ATTENTION Found a swap file by the name "/etc/X11/.xorg.conf.swp" owned by: root dated: Mon Apr 6 14:37:03 2009 file name: /etc/X11/xorg.conf modified: YES user name: root host name: mikan process ID: 8021 While opening file "/etc/X11/xorg.conf" dated: Thu Mar 5 23:15:04 2009 (1) Another program may be editing the same file. If this is the case, be careful not to end up with two different instances of the same file when making changes. Quit, or continue with caution. (2) An edit session for this file crashed. If this is the case, use ":recover" or "vim -r /etc/X11/xorg.conf" to recover the changes (see ":help recovery"). If you did this already, delete the swap file "/etc/X11/.xorg.conf.swp" to avoid this message. "/etc/X11/xorg.conf" 33 lines, 1037 characters ¤È½Ð¤Æ¤É¤¦¤¹¤ì¤Ð¤¤¤¤¤«Ì¤äƤ¤¤Þ¤¹ |
>>4985 ¤Á¤Ó¥ô¥¡¥ë > Found a swap file by the name "/etc/X11/.xorg.conf.swp" vim ¤¬ºîÀ®¤·¤¿¥¹¥ï¥Ã¥×¥Õ¥¡¥¤¥ë¤Ç¤·¤ç¤¦¤«¤é¡¢.xorg.conf.swp ¤ò ºï½ü¤·¤Æ¡¢root ¸¢¸Â¤Ç xorg.conf ¤ò¹¹¿·¤¹¤ì¤Ð¤è¤¤¤È»×¤¤¤Þ¤¹¡£ |
>> 4978 > find . -newer foo ¤ÎÊýË¡¤ò½ñ¤¤¤Æ¤ª¤¤Þ¤¹¡£find ¤ò»È¤ï¤Ê¤¤¤Ê¤é¡¢ > ºòÆü9»þ¤ÎÆü»þ (20090323090000) ¤ò Time::Local ¤Ç epoch time ¤Ë > ľ¤·¤Æ¤ª¤¡¢stat() ¤¬ÊÖ¤¹ºÇ½ª¹¹¿·»þ¹ï¤ÈÈæ³Ó¤¹¤ì¤Ð¤è¤¤¤Ç¤·¤ç¤¦ ¤ÎÊýË¡¤ò¶µ¤¨¤ÆÍߤ·¤¤¤Î¤Ç¤¹¤¬¡£ |
B¥·¥§¥ë¤Ç¡¢sed¤ò»È¤Ã¤Æ¡¢¥Õ¥ë¥Ñ¥¹¤«¤é¥Ç¥£¥ì¥¯¥È¥ê¤È¥Õ¥¡¥¤¥ë̾¤ò ʬ³ä¤·¤¿¤¤¤Î¤Ç¤¹¤¬Îɤ¤ÊýË¡¤ò¶µ¤¨¤Æ¤¯¤À¤µ¤¤¡£ ¥Õ¥¡¥¤¥ë̾¤ò¼è¤ê½Ð¤¹¤³¤È¤Ï½ÐÍ褿¤Î¤Ç¤¹¤¬¡¢¥Ñ¥¹Ì¾¤ò¼è¤ê½Ð¤¹¤³¤È ¤¬¤Ç¤¤Þ¤»¤ó¡£ ¤Þ¤¿¡¢¥ë¡¼¥Èľ²¼¡Ö/txt.csv¡×¤Î¤è¤¦¤Ê¾ì¹ç¤À¤È¡¢¥Õ¥¡¥¤¥ë̾¤¬¼è¤ê½Ð¤» ¤Þ¤»¤ó¡£·ë²Ì¤¬¡¢¡Ö/txt.csv¡×¤È¤Ê¤Ã¤Æ¤·¤Þ¤¤¤Þ¤¹¡£¡Ötxt.csv¡×¤È ¤·¤¿¤¤¤Î¤Ç¤¹¡£ ------------------------------------ FILE=/aaa/bbb/txt.csv echo ${FILE} | sed 's/\/.*\///g' FILE=/txt.csv echo ${FILE} | sed 's/\/.*\///g' FILE=txt.csv echo ${FILE} | sed 's/\/.*\///g' ´Ä¶¤Ï¡¢ Solaris8 B¥·¥§¥ë |
>>4989 ¤Ù¤¿ basename¡¦dirname ¥³¥Þ¥ó¥É¤ò»È¤¦¤Î¤Ï¥À¥á¤Ç¤¹¤«¤Í¡£ |
>>4990 68user >basename¡¦dirname ¥³¥Þ¥ó¥É¤ò»È¤¦¤Î¤Ï¥À¥á¤Ç¤¹¤«¤Í¡£ ¤â¹Í¤¨¤Þ¤·¤¿¤¬¡¢ ½ÐÍè¤ì¤Ð¡¢»È¤ï¤Ê¤¤ÊýË¡¤Ç¤È |
>>4991 ¤Ù¤¿ ÉáÄ̤˹ͤ¨¤ë¤È¡¢¤½¤ìÀìÍѤΥ³¥Þ¥ó¥É¤¬¤¢¤ë¤ó¤À¤«¤é¤½¤ì¤ò»È¤¦¤Ù¤¡£ sed ¤Ç¤ä¤ê¤¿¤¤¤Ê¤é¤³¤ó¤Ê´¶¤¸¤«¤Ê¤¡¡© - ¥Õ¥¡¥¤¥ë̾ echo ${FILE} | sed 's/.*\///g' - ¥Ñ¥¹Ì¾ echo ${FILE} | sed 's/\(.*\/\)[\/]*/\1/g' |
>>4992 zsh > ÉáÄ̤˹ͤ¨¤ë¤È¡¢¤½¤ìÀìÍѤΥ³¥Þ¥ó¥É¤¬¤¢¤ë¤ó¤À¤«¤é¤½¤ì¤ò»È¤¦¤Ù¤¡£ ¤¹¤ß¤Þ¤»¤ó¡£ > - ¥Ñ¥¹Ì¾ > echo ${FILE} | sed 's/\(.*\/\)[\/]*/\1/g' ¤¬¡¢¾å¼ê¤¯¤¤¤¤Þ¤»¤ó¤Ç¤·¤¿¡£ ¥Ñ¥¹Ì¾¤¬¤È¤ì¤Þ¤»¤ó¡£¥Õ¥ë¥Ñ¥¹¤¬Ê֤äƤ¤Þ¤¹¡£ /aaa/bbb/txt.csv ¢ª¡¡/aaa/bbb/txt.csv /txt.csv ¢ª¡¡/txt.csv |
>>4992 zsh > ÉáÄ̤˹ͤ¨¤ë¤È¡¢¤½¤ìÀìÍѤΥ³¥Þ¥ó¥É¤¬¤¢¤ë¤ó¤À¤«¤é¤½¤ì¤ò»È¤¦¤Ù¤¡£ ¤¹¤ß¤Þ¤»¤ó¡£ > - ¥Ñ¥¹Ì¾ > echo ${FILE} | sed 's/\(.*\/\)[\/]*/\1/g' ¤¬¡¢¾å¼ê¤¯¤¤¤¤Þ¤»¤ó¤Ç¤·¤¿¡£ ¥Ñ¥¹Ì¾¤¬¤È¤ì¤Þ¤»¤ó¡£¥Õ¥ë¥Ñ¥¹¤¬Ê֤äƤ¤Þ¤¹¡£ ¤½¤ì¤È¡¢¥Õ¥¡¥¤¥ë̾¤Î¤ß¾ì¹ç¤Ï¡¢Ãͤ¬¤Ê¤·¤È¤·¤¿¤¤¤Î¤Ç¤¹¤¬¡£ /aaa/bbb/txt.csv ¢ª¡¡/aaa/bbb/txt.csv /txt.csv ¢ª¡¡/txt.csv |
>>4994 ¤Ù¤¿ ¼ºÎ餷¤Þ¤·¤¿¡£¢¤Ç¤É¤¦¤Ç¤·¤ç¤¦¤«¡© echo ${FILE} | sed -n -e 's#\(.*\)/[^/]*#\1#p' |
>>4996 zsh ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ ¥Ñ¥¹Ì¾¤ò¼è¤ê½Ð¤¹¤³¤È¤¬¤Ç¤¤Þ¤·¤¿¡£ ¤¿¤À¡¢°Ê²¼¤ÎÍͤ˾ì¹ç¡¢¾å¼ê¤¯¤¤¤¤Þ¤»¤ó¡£ ¡ÖFILE=/txt.csv¡×¤Î¾ì¹ç ¡Ö/¡×¤È¤Ê¤ê¤Þ¤»¤ó¡£ ¥Ö¥é¥ó¥¯¤È¤¤¤¦¤«¡¢²þ¹Ô¤·¤Þ¤¹¡£ ¡Ö/¡×¤À¤±¼è¤ê½Ð¤¹¤È¤¤¤¦¤Î¤Ï̵Íý¤Ê¤Î¤Ç¤·¤ç¤¦¤«¡£ ¡ÖFILE=txt.csv¡×¤Î¾ì¹ç ¥Ö¥é¥ó¥¯¤È¤Ê¤ê¤Þ¤¹¡£ Àµ¤·¤¤Æ°¤¤Ê¤Î¤Ç¤·¤ç¤¦¤«¡£ |
nawk¤Î¥æ¡¼¥¶ÄêµÁ´Ø¿ô¤Ë¤Ä¤¤¤Æ¶µ¤¨¤Æ²¼¤µ¤¤¡£ nawk¤Ç¡¢¥æ¡¼¥¶ÄêµÁ´Ø¿ô¤ò¸Æ¤Ó½Ð¤·¤ÆÊÔ½¸¤ò¹Ô¤Ã¤Æ¤¤¤ë¤Î¤Ç¤¹¤¬¡¢ ¥æ¡¼¥¶ÄêµÁ´Ø¿ôÆâ¤ÇÊÔ½¸¤·¤¿Ãͤò¡¢¥Ñ¥é¥á¡¼¥¿¤ÇÅϤ·¤¿ÊÑ¿ô¤ËÀßÄê ¤·¤ÆÊֵѤ·¤¿¤¤¤Î¤Ç¤¬Ãͤ¬ÊֵѤµ¤ì¤Þ¤»¤ó¡£ ¥æ¡¼¥¶ÄêµÁ´Ø¿ôÆâ¤Ç¤Ï¡¢ÅϤ·¤¿ÊÑ¿ô¤ËÃͤ¬ÀßÄꤵ¤ì¤Æ¤¤¤ë¤Î¤Ç¤¹¤¬¡¢ ´Ø¿ô¤òÈ´¤±¤ë¤ÈÃͤ¬ÀßÄꤵ¤ì¤Æ¤¤¤Þ¤»¤ó¡£ ¤É¤¦¤·¤Æ¤Ê¤Î¤Ç¤·¤ç¤¦¤«¡£ ¤½¤ì¤È¤â¡¢ÌµÍý¤Ê¤Î¤Ç¤·¤ç¤¦¤«¡£ ¥Ñ¥é¥á¡¼¥¿¤ÇÅϤ·¤¿ÊÑ¿ô¤ËÀßÄꤷ¤ÆÊÖ¤¹¤³¤È¤¬¤Ç¤¤ë¤Î¤Ç¤·¤ç¤¦¤«¡£ ´Ä¶ OS¡§Solairs8 ¥·¥§¥ë¡§B¥·¥§¥ë¡Êsh¡Ë -------------------------------------------------------------- nawk -v OUT=${OutFile} -F"," ' BEGIN { count = 0+0; } function chk2(arg1,arg2,val) { sub(/^"*/,"",arg1); sub(/"*$/,"",arg1); sub(/^"*/,"",arg2); sub(/"*$/,"",arg2); val=sprintf("%s %s",arg1,arg2); } function chk1(arg1,val) { sub(/^"*/,"",arg1); sub(/"*$/,"",arg1); val=arg1; } { chk1($1,UserID); chk2($8,$9,Name); printf("%s,%s\n",UserID,Name); #printf("%s,%s\n",UserID,Name) >> OUT; count++; } END { printf("Output number : %d\n",count); }' ${FILE} |
>>4997 ¤Ù¤¿ > ¡ÖFILE=/txt.csv¡×¤Î¾ì¹ç ¥Ñ¥¹Ì¾ËöÈø¤Î / ¤ò½ÐÎϤ·¤Ê¤¤¤è¤¦¤Ë¤·¤Æ¤¤¤¿¤¿¤á¤Ç¤¹¤Í¡£ echo ${FILE} | sed -n -e 's#\(.*/\)[^/]*#\1#p' ¤³¤¦¤¹¤ì¤Ð½ÐÎϤµ¤ì¤ë¤È»×¤¤¤Þ¤¹¤¬¡¢ µÕ¤Ë /hoge/fuga.txt ¤Î¤è¤¦¤Ê¾ì¹ç¤Ç¤â /hoge/ ¤È¤Ê¤ê¤Þ¤¹¡£ > ¡ÖFILE=txt.csv¡×¤Î¾ì¹ç ¥Ñ¥¹¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¤Î¤Ç¡¢¥Ö¥é¥ó¥¯¤ÇÀµ¤·¤¤¤È»×¤Ã¤Æ¤¤¤Þ¤¹¤¬¡£ ¡Ê¤½¤¦¤¤¤Ã¤¿¾ò·ï¤â¤¢¤ê¤Þ¤»¤ó¤Ç¤·¤¿¤·¡£¡Ë >>4998 ¤Õ¤¯¤· nawk ¤Ï»²¾ÈÅϤ·¤Ç¤¤Ê¤¤¤Ï¤º¤Ê¤Î¤Ç¡¢¤½¤¦¤¤¤¦½ñ¤Êý¤Ç¤Ï¤Ç¤¤Þ¤»¤ó¡£ ¤¿¤À nawk ¤Ç¤Ï¡¢¥æ¡¼¥¶´Ø¿ô¤Î°ú¿ô¤È¤·¤ÆÄêµÁ¤µ¤ì¤¿ÊÑ¿ô¤ò½ü¤¡¢ ¤¹¤Ù¤Æ¥°¥í¡¼¥Ð¥ëÊÑ¿ô¤À¤È»×¤¦¤Î¤Ç¡¢¤ä¤í¤¦¤È¤·¤Æ¤¤¤ë¤³¤È¤Ï¤Ç¤¤Þ¤¹¡£ |
>>4997 ¤Ù¤¿ ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤·¤¿¡£ ½ÐÎϤµ¤ì¤Þ¤·¤¿¡£ |
>>4999 zsh ¤ªÎéÀè¸í¤ê¤Ç¤¹¤ß¤Þ¤»¤ó¡£ ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ >> ¡ÖFILE=txt.csv¡×¤Î¾ì¹ç > ¥Ñ¥¹¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¤Î¤Ç¡¢¥Ö¥é¥ó¥¯¤ÇÀµ¤·¤¤¤È»×¤Ã¤Æ¤¤¤Þ¤¹¤¬¡£ > ¡Ê¤½¤¦¤¤¤Ã¤¿¾ò·ï¤â¤¢¤ê¤Þ¤»¤ó¤Ç¤·¤¿¤·¡£¡Ë No. 4994¤Ç¡¢¼«Ê¬¤Ç¥Õ¥¡¥¤¥ë̾¤Î¤ß¤Î¾ì¹ç¡¢Ãͤʤ·¤È¤·¤¿¤¤¤È ½ñ¤¤¤Æ¤ª¤¤Ê¤¬¤éÀµ¤·¤¤Æ°¤¤Ê¤ó¤Ç¤¹¤«¤È¼ÁÌ䤹¤ß¤Þ¤»¤ó¤Ç ¤·¤¿¡£ |
>>4998 ¤Õ¤¯¤· ¤¨¤Ã¡¢Solairs8 ¤Î nawk ¤Ã¤Æ return ¤ò»È¤¨¤Ê¤¤¤ó¤Ç¤·¤ç¤¦¤«¡© |
>>5002 sfish man ¤Ë¤Ï return [expr] ¤ÈµºÜ¤¬¤¢¤Ã¤¿¤Î¤Ç¡¢¥ê¥¿¡¼¥ó¥³¡¼¥É¤òÊÖ¤¹¤â¤Î¤À¤È»×¤Ã¤Æ¤¤¤Þ¤·¤¿¤¬¡¢ ³Î¤«¤ËÃͤòÊÖ¤¹¤³¤È¤â½ÐÍè¤Þ¤·¤¿¡£¤³¤Ã¤Á¤ÎÊý¤¬¤¤¤¤¤Ç¤¹¤Í¡£ |
>>4999 zsh > ¤¿¤À nawk ¤Ç¤Ï¡¢¥æ¡¼¥¶´Ø¿ô¤Î°ú¿ô¤È¤·¤ÆÄêµÁ¤µ¤ì¤¿ÊÑ¿ô¤ò½ü¤¡¢ > ¤¹¤Ù¤Æ¥°¥í¡¼¥Ð¥ëÊÑ¿ô¤À¤È»×¤¦¤Î¤Ç¡¢¤ä¤í¤¦¤È¤·¤Æ¤¤¤ë¤³¤È¤Ï¤Ç¤¤Þ¤¹¡£ ¤É¤¦¤¤¤¦¤³¤È¤Ç¤·¤ç¤«¡£ nakw¤Ç´Ø¿ô¤òºî¤ë¤Î¤¬ÉÔ´·¤ì¤Ê¤â¤Î¤Ç¡¢ nawkÆâ¤ÇÄêµÁ¤·¤¿ÊÑ¿ô¤Ï¥°¥í¡¼¥Ð¥ëÊÑ¿ô¤Ê¤Î¤Ç¡¢nawkÆâ¤Ç¤¢¤ì¤Ð¡¢ ¥æ¡¼¥¶ÄêµÁ´Ø¿ô¤Ç¤â»²¾È¤ä½ñ¤´¹¤¨¤¬¤Ç¤¤ë¤È¤¤¤¦¤³¤È¤Ç¤·¤ç¤¦¤«¡£ ¤Þ¤¿¡¢ ¥æ¡¼¥¶ÄêµÁ´Ø¿ô¤Ê¤¤¤ÇÄêµÁ¤·¤¿ÊÑ¿ô¤Ï¡¢´Ø¿ôÆâ¤Ç¤·¤«Í¸ú¤È¤Ê¤é¤Ê¤¤ ¤È¤¤¤¦¤³¤È¤Ç¤·¤ç¤¦¤«¡£ Îã¤Ê¤É¤òºÜ¤»¤Æ¤¯¤ì¤ë¤È¤¢¤ê¤¬¤¿¤¤¤Î¤Ç¤¹¤¬¡£ |
>>5004 ¤Õ¤¯¤· > nawkÆâ¤ÇÄêµÁ¤·¤¿ÊÑ¿ô¤Ï¥°¥í¡¼¥Ð¥ëÊÑ¿ô¤Ê¤Î¤Ç¡¢nawkÆâ¤Ç¤¢¤ì¤Ð¡¢ > ¥æ¡¼¥¶ÄêµÁ´Ø¿ô¤Ç¤â»²¾È¤ä½ñ¤´¹¤¨¤¬¤Ç¤¤ë¤È¤¤¤¦¤³¤È¤Ç¤·¤ç¤¦¤«¡£ ¤½¤ÎÄ̤ê¤Ç¤¹¡£ ¤¿¤À¡¢ >>5002 sfish ¤Ç return ¤ÇÃͤ¬Ì᤻¤ë¤³¤È¤ò¶µ¤¨¤Æ夤¤¿¤Î¤Ç ´Ø¿ô¦¤Ï¡¢ --------------------------------- function chk1(arg1) { sub(/^"*/,"",arg1); sub(/"*$/,"",arg1); return arg1; } --------------------------------- ¤Î¤è¤¦¤Ë¤·¤Æ¡¢¸Æ¤Ó½Ð¤·Â¦¤Ï --------------------------------- UserID = chk1($1); --------------------------------- ¤È¤¹¤ì¤Ð¡¢¤ä¤í¤¦¤È¤·¤Æ¤¤¤ë¤³¤È¤¬¤Ç¤¤ë¤È»×¤¤¤Þ¤¹¡£ |
½éÊâŪ¤Ê¼ÁÌä¤Ç¤¹¤¬ Æ⢣ȣģĤòÁýÀߤ·¡Ölabel¡§Backup¡×¤È¤·¤Æ¡¢¥¯¥ê¥Ã¥¯¤·¤Þ¤¹¤È¡Ö£ó£ä£â¡×¤Èɽ¼¨¤µ¤ì¤Æ¤¤¤Þ¤¹¡£ ¥×¥í¥Ñ¥Æ¥£¤Ç¡¢¾ì½ê¤Ï/mnt¤È¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£ ¤³¤ÎHDD¤Ë¡¡mv /home/ormaster/123.txt sdb/123.txt ¤È¥Õ¥¡¥¤¥ë¤Î°ÜÆ°¤ò¤·¤¿¤¤¤Î¤Ç¤¹¤¬ÊýË¡¤ò¶µ¤¨¤Æ¤¯¤À¤µ¤¤¡£ |
>>5005 zsh ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ |
¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¡Öcannot execute binary ¡×¤Ë¤Ä¤¤¤Æ¤Î¼ÁÌä¡£ °ÊÁ°¤Ëservice sendmail start 2<&1 | /bin/mail -s "·ï̾" wenbi@akw.com.cn ¤È¤¤¤¦¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤Æ¡¢Àµ¾ï¤Ç¤¹¡£ ¤·¤«¤·¡¢²¼µ¤Î¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤Æ¡¢¡Öcannot execute binary ¡×¤È¤¤¤¦¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤ò½Ð¤Þ¤·¤¿¡£ ¤³¤Î¸å¡¢¾åµ¤Î¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤Æ¤â¡¢¥¨¥é¡¼¤ò½Ð¤Þ¤¹¡£ service sendmail start infile.txt iconv -f EUC-JP -t Shift_JIS infile.txt < infile2.txt cat infile2.txt | /bin/mail -s "·ï̾" wenbi@akw.com.cn |
>>5006 ¤Þ¤¨ mount ºÑ¤ß¤Ç¤¢¤ì¤Ð¡¢mv /home/ormaster/123.txt /mnt/123.txt ¤Ç ¤¤¤±¤ë¤Î¤Ç¤Ï¤Ê¤¤¤«¤È»×¤¤¤Þ¤¹¡£ >>5008 »³ÅÄÍÎ»Ò ¤è¤¯¤ï¤«¤ê¤Þ¤»¤ó¤¬¡¢cannot execute binary ¤Î¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤ò ½ÐÎϤ·¤Æ¤¤¤ë¤Î¤¬ service ¥³¥Þ¥ó¥É¤Ê¤Î¤«¡¢iconv ¥³¥Þ¥ó¥É¤Ê¤Î¤«¡¢ cat ¤ä mail ¤Ê¤Î¤«¤òÄ´¤Ù¤Æ¤ß¤Æ¤Ï¤É¤¦¤Ç¤·¤ç¤¦¤«¡£ |
nawk¤Çsystem´Ø¿ô¤Ç¡¢¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤Æ¤¤¤Þ¤¹¡£ º£¡¢system´Ø¿ô¤Ç¼Â¹Ô¤·¤¿¥³¥Þ¥ó¥É¤Î·ë²Ì¤òÊÑ¿ô ¤Ë³ÊǼ¤·¤¿¤¤¤Î¤Ç¤¹¤¬¡¢·ë²Ì¤Î¥¹¥Æ¡¼¥¿¥¹¤¬³ÊǼ ¤µ¤ì¤Æ¡¢¥³¥Þ¥ó¥É¤Î¼Â¹Ô·ë²Ì¤¬³ÊǼ¤Ç¤¤Þ¤»¤ó¡£ ¤É¤¦¤·¤Æ¤Ê¤Î¤Ç¤·¤ç¤¦¤«¡£¤½¤â¤½¤âÉÔ²Äǽ¤Ê¤Î¤Ç¤·¤ç¤¦¤«¡£ system´Ø¿ô¤Ç¡¢date¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¡¢·ë²Ì¤òÊÑ¿ô¤Ë ³ÊǼ¤·¤Æ¡¢nawkÆâ¤Ç»ÈÍѤ·¤¿¤¤¤Î¤Ç¤¹¡£ nawk '{system("date +%Y%m%d")}' ´Ä¶¤Ï¡¢ Solaris8 bsh ¤Ç¤¹¡£ |
>>5010 ¤Õ¤¯¤· system ¤Ïñ¤Ê¤ë¥³¥Þ¥ó¥É¤Î¼Â¹Ô¤Ç¤¢¤ê¡¢¥³¥Þ¥ó¥É¤Îɸ½à½ÐÎϤò¼õ¤±¼è¤ë¤è¤¦¤Ê »ÅÁȤߤˤʤäƤ¤¤Þ¤»¤ó¡£¤³¤Î¾ì¹ç¤Ï getline ¤ò»È¤¦¤Ù¤¤«¤È»×¤¤¤Þ¤¹¡£ |