68user's page ·Ç¼¨ÈÄ

Prev< No. 4905¡Á5005> Next  [ºÇ¿·È¯¸À¤ËÌá¤ë] [²áµî¥í¥°°ìÍ÷]
No. 4906 # hoge 2008/05/19 (·î) 00:21:11
¤¤¤Ä¤â¤³¤Á¤é¤Ë¤Ï¤ªÀ¤ÏäˤʤäƤޤ¹¡£

flex¤Ë¤Ä¤¤¤Æ¤Î»ØŦ¤Ç¤¹¡£
http://x68000.q-e-d.net/~68user/unix/pickup?flex

GNU¤Ç¤ÏºîÀ®¡¦ÇÛÉÛ¤·¤Æ¤Ê¤¤¤è¤¦¤Ç¤¹¡£
http://ftp.gnu.org/gnu/flex/flex.README

No. 4907 # 68user 2008/05/19 (·î) 23:44:38
>>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 ÆþÌç¡×
¤À¤Ã¤¿¤ê¤¹¤ë¤ó¤Ç¤·¤ç¤¦¤«¡£

No. 4908 # 68user 2008/05/19 (·î) 23:57:23
>>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 ¤â¸«¤Ä¤«¤é¤Ê¤¤¤·¡Ä¡£

No. 4909 # 68user 2008/05/24 (ÅÚ) 14:05:02
>>4908 68user
> ¤¦¡¼¤ó¡¢¤ä¤Ï¤ê 2.5.3 °ÊÁ°¤Ï GNU ¤À¤Ã¤¿¤Î¤À¤í¤¦¤«¡£
flex-2.5.2/COPYING ¤ò³Îǧ¤·¤Þ¤·¤¿¤¬¡¢
>> ²¼¤Î Flex 2.5.4¤Î COPYING ¤ß¤¿¤¤¤Ê¤³¤È¤Ë¤Ê¤Ã¤Æ¤¤¤ë¡£
¤È¤Û¤ÜƱ¤¸¤Ç¤·¤¿¡£¤è¤Ã¤Æ¡¢°ÊÁ°¤Ï flex ¤Ï GNU ¤Ç¤¢¤Ã¤¿¤¬¡¢
¤¢¤ë»þÅÀ¤«¤é GNU ¤Ç¤Ê¤¯¤Ê¤Ã¤¿¡¢¤Ê¤É¤È¤¤¤¦»ö¼Â¤Ï¤Ê¤¤¤è¤¦¤Ç¤¹¡£

No. 4910 # 68user 2008/05/24 (ÅÚ) 14:40:56
>>4907 68user
> http://www.ascii.co.jp/books/books/detail/4-7561-3097-6.shtml
> FlexÆþÌç
> ¥·¥ê¡¼¥º¡§GNU¥·¥ê¡¼¥º
¸å¤Ï¤³¤ì¤À¤±¤¬µ¤¤Ë¤Ê¤Ã¤Æ¤·¤ç¤¦¤¬¤Ê¤¤¤Î¤Ç¡¢¥¢¥¹¥­¡¼¤Ë¡Ö¤Ê¤¼ GNU ¥·¥ê¡¼¥º¤Ê¤Î¤«¡×¤È¤¤¤¦
Ì䤤¹ç¤ï¤»¤òÅꤲ¤Þ¤·¤¿¡£ÊÖ»öÍè¤ë¤È¤¤¤¤¤Ê¤¡¡£

# ¤½¤ÎÁ°¤ËÌõ¼Ô¤È»×¤ï¤ì¤ëÊý¤Ë¥á¡¼¥ë¤òÅꤲ¤¿¤â¤Î¤Î¡¢user unknown ¤ÇÊ֤äƤ­¤Þ¤·¤¿¡£

No. 4912 # hoge 2008/05/30 (¶â) 00:10:44
ÌäÂê¤òÅꤲ¤Ã¤Ñ¤Ê¤·¤Ë¤·¤Æ¤¹¤¤¤Þ¤»¤ó¡£
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 ÆþÌç¡×
¤À¤È¹Í¤¨¤Þ¤¹¤¬¡¢¤¤¤«¤¬¤Ç¤·¤ç¤¦¤«¡£

No. 4913 # BK 2008/06/04 (¿å) 14:02:24
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/¤Ç¤Ê¤¤¤Èɽ¼¨¤µ¤ì¤Ê¤¤¤è¤¦¤Ë»×¤¤¤Þ¤¹¡£»²¹Í¤Ë¤µ¤»¤Æ夤¤Æ¤¤¤Þ¤¹¡£

No. 4914 # 68user 2008/06/13 (¶â) 10:00:15
>>4912 hoge
flex ¤Ë¤Ä¤¤¤Æ¤Ï¹¹¿·¤·¤Æ¤ª¤ê¤Þ¤¹¡£¤´»ØŦ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£
http://x68000.q-e-d.net/~68user/unix/pickup?flex

¡ÖGNU ¥·¥ê¡¼¥º¡×¤Ë¤Ä¤¤¤Æ¤Ï¥¢¥¹¥­¡¼¤è¤ê²óÅú¤ò¤¤¤¿¤À¤¤¤¿¤Î¤Ç¤¹¤¬¡¢
»ÄÇ°¤Ê¤¬¤é Web ¤Ç¤Î¸ø³«¤ÏÉԲĤȤΤ³¤È¤Ê¤Î¤Ç¡¢Êè¾ì¤Þ¤Ç»ý¤Ã¤Æ¤¤¤­
¤¿¤¤¤È»×¤¤¤Þ¤¹¡£

>>4913 BK
¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£¼è¤êµÞ¤® IP ¥¢¥É¥ì¥¹¤Î¤ß¹¹¿·¤·¤Þ¤·¤¿¡£

No. 4915 # ¤Ù¤¿ 2008/07/04 (¶â) 21:17:12
sh¤Ç¡¢Ê¸»úÎ󤫤éʸ»úÎó¤ò¼è¤ê½Ð¤½¤¦¤È¤·¤Æ¤¤¤Þ¤¹¡£

¡Éaaa.bbb@test.cojp¡É
¤«¤é¡Ö@¡×¤è¤êÁ°¤È¸å¤ò¡¢

¡Éaaa.bbb"
¤È
¡É@test.co.jp¡É
¤ò¼è¤ê½Ð¤·¤¿¤¤¤Î¤Ç¤¹¡£
¤É¤Î¤è¤¦¤Ë¤¹¤ì¤ÐÎɤ¤¤«¶µ¤¨¤Æ¤¯¤À¤µ¤¤¡£

No. 4916 # 68user 2008/07/08 (²Ð) 20:45:49
>>4915 ¤Ù¤¿
ÊÑ¿ô $email ¤Ë¥á¡¼¥ë¥¢¥É¥ì¥¹¤¬Æþ¤Ã¤Æ¤¤¤ë¤Ê¤é¡¢¤³¤ó¤Ê´¶¤¸¤Ç¤·¤ç¤¦¤«¡£

$ echo $email | sed 's/\(.*\)@.*/\1/'
aaa
$ echo $email | sed 's/.*\(@.*\)/\1/'
@bbb.com

No. 4917 # findusi [URL] [E-mail] 2008/07/08 (²Ð) 21:13:16
Ìíå ïîíðàâèëñÿ òâîé ïîðòàë, êîíå÷íî æå ÿ åãî âíåñó ê ñåáå â çàêëàäêè è òåïåðü êàæäûé ðàç áóäó åãî ïîñåùàòü. Òâîé ïîðòàë äîñòîéííûé âíèìàíèÿ ñ íå òîëüêî ñ ÷àñòè êîíòåíòà, íî è ïðîñòî ñ âåñåëîãî îôîðìëåíèÿ. Ïðåäëàãàþ ïîñåòèòü <a href=http://www.find-business.ru>ìîé</a> ïîðòàë

No. 4918 # ¤Ù¤¿ 2008/07/08 (²Ð) 22:44:17
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¥·¥§¥ë)

No. 4919 # ¤Ù¤¿ 2008/07/08 (²Ð) 22:55:38
>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¡¡¤ÇÃÖ´¹¤¹¤ëÊýË¡¤Ïµ¤¤¬ÉÕ¤­¤Þ¤»¤ó¤Ç¤·¤¿¡£
¤¿¤á¤·¤Æ¸«¤Þ¤¹¡£

No. 4920 # 68user 2008/07/09 (¿å) 01:38:42
>>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 ¤ÎÀ¤³¦¤Ç¸Ç¤á¤ë¤Î¤¬¹¥¤­¤«¡¢¤Ç¤·¤ç¤¦¤«¡£

No. 4921 # zsh 2008/07/09 (¿å) 10:09:43
>>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 ¤µ¤ó¤Î¶Ä¤ë¤È¤ª¤ê¤À¤È»×¤¤¤Þ¤¹¡£

No. 4923 # ¤Ù¤¿ 2008/07/10 (ÌÚ) 22:27:06
>>4921 zsh
¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£

expr¤äcut¤Ç¤Î»È¤¤Êý¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£
ÊÙ¶¯¤Ë¤Ê¤ê¤Þ¤¹¡£

No. 4924 # ¤Ù¤¿ 2008/07/10 (ÌÚ) 22:28:12
WindowsXP IE6.0 SP2 ¤ÎÊ̤ÎüËö¤«¤é½ñ¤­¹þ¤ß¤ò
¤ª¤³¤Ê¤Ã¤¿¤é°Ê²¼¤Î¥¨¥é¡¼²èÌ̤¬É½¼¨¤µ¤ì¤Þ¤·¤¿¡£

²¿¤«¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤¤¤Ê¤¤¤â¤Î¤¬¤¢¤ë¤Î¤Ç¤·¤ç¤¦¤«¡£


¥¨¥é¡¼ : ÆâÉô¥¨¥é¡¼¤¬µ¯¤³¤ê¤Þ¤·¤¿¡£
http://x68000.q-e-d.net/%7E68user/cgi-bin/wwwboard.cgi ¤Î¼Â¹Ô¤¬¤Ç¤­¤Þ¤»¤ó¤Ç
¤·¤¿¡£
¤ª¤½¤é¤¯CGI¥×¥í¥°¥é¥à¤ÎÉÔ¶ñ¹ç¤¬¸¶°ø¤Ç¤¹¡£

¤â¤·¡¢¤³¤Á¤é¤Î¥Õ¥¡¥¤¥ëÀßÄê¥ß¥¹¡¦¥ê¥ó¥¯¥ß¥¹¡¦CGI ¤ÎÉÔ¶ñ¹ç¤Ê¤É¤¬¸¶°ø¤Ç¤¢¤Ã¤¿¾ì
¹ç¤ÏÁáµÞ¤Ë½¤Àµ¤·¤Þ¤¹¡£

¤Î²èÌ̤¬É½¼¨¤µ¤ì¤Þ¤¹¡£

No. 4925 # ¤Ù¤¿ 2008/07/10 (ÌÚ) 22:36:19
>>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¡É¤¬Êֵѡ£

No. 4926 # ¤Ù¤¿ 2008/07/12 (ÅÚ) 01:29:32
>>4923 ¤Ù¤¿

¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£

$ expr $email : '\(.*\)@.*'
$ expr $email : '.*\(@.*\)$'
$ echo $email | cut -d '@' -f 1
$ echo $email | cut -d '@' -f 2

¤É¤ì¤Ç¤â¡¢¼è¤ê½Ð¤»¤Þ¤·¤¿¡£

No. 4927 # 68user 2008/07/20 (Æü) 03:21:17
>>4925 ¤Ù¤¿
> £±²óÌܤÎiconv¡Ê¥Ñ¥¤¥×¤Îº¸Â¦¤Îiconv¡Ë¤¬¥¨¥é¡¼¤È¤Ê¤Ã¤¿¤È¤­¡¢
> ¥¹¥Æ¡¼¥¿¥¹¤¬¥¨¥é¡¼¤ÇÊ֤äƤ­¤Þ¤»¤ó¡£
> ¥¨¥é¡¼¤òȽÃǤ·¤¿¤¤¤Î¤Ç¤¹¤¬¡¢¤É¤Î¤è¤¦¤Ë¤·¤¿¤é¥¨¥é¡¼¤ÈȽÃÇ
> ¤Ç¤­¤ë¤Ç¤·¤ç¤¦¤«¡£
bash ¤Ê¤é PIPESTATUS ¤ò»È¤¨¤Ð¤è¤¤¤Ç¤¹¤¬¡¢sh ¤Ç¤¢¤ì¤Ð
½ªÎ»¥¹¥Æ¡¼¥¿¥¹¤Ï¼èÆÀ¤Ç¤­¤Ê¤¤¤È»×¤¤¤Þ¤¹¡£¤·¤ç¤Ü¤¤¤Ç¤¹¤¬¡¢
¥Ñ¥¤¥×¤ò»È¤¦¤Î¤ò¤ä¤á¤ë¤Î¤¬¤è¤¤¤«¤È»×¤¤¤Þ¤¹¡£

>>4924 ¤Ù¤¿
> WindowsXP IE6.0 SP2 ¤ÎÊ̤ÎüËö¤«¤é½ñ¤­¹þ¤ß¤ò
> ¤ª¤³¤Ê¤Ã¤¿¤é°Ê²¼¤Î¥¨¥é¡¼²èÌ̤¬É½¼¨¤µ¤ì¤Þ¤·¤¿¡£
IP ¥¢¥É¥ì¥¹¤äȯ¸ÀÆâÍƤʤɤ«¤é SPAM ¤ÈȽÄꤵ¤ì¤¿¤Î¤«¤â¤·¤ì¤Þ¤»¤ó¡£
ÆäËȽÄêÀºÅ٤ι⤤¤â¤Î¤Ç¤Ï¤Ê¤¤¤Î¤Ç¡¢ÉÑȯ¤¹¤ë¤è¤¦¤Ê¤é¤´Ï¢Íí¤¯¤À¤µ¤¤¡£

No. 4928 # ¤Ù¤¿ 2008/07/22 (²Ð) 21:53:41
>>4927 68user

¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£
sh ¤Ç¤­¤Ê¤¤¤ó¤Ç¤¹¤Í¡£
½ÐÎÏ·ë²Ì¤¬¤Ê¤±¤ì¤Ð¡¢½ÐÎÏ·ë²Ì¤ò¥Ñ¥¤¥×¤ÇÅϤµ¤Ê¤±¤ì¤Ð
¡Ö&&¡×¤Ç¤¤¤±¤ë¤Î¤Ç¤Ê¤¤¤«¤Èʤ¤¤¤Þ¤¹¤¬¡£

¥Ñ¥¤¥×¤ò»È¤ï¤º¸Ä¡¹¤Ë¹Ô¤¤¤Þ¤¹¡£

No. 4929 # ¤Ù¤¿ 2008/07/30 (¿å) 00:39:04
Solaris8 ¤Ê¤Î¤Ç¤¹¤¬¡¢¡Ö/var/log/syslog¡×¤Ë¡¢
TCP¥³¥Í¥¯¥·¥ç¥ó¤Î¥í¥°¤ò½ÐÎϤµ¤»¤¿¤¤¤Î¤Ç¤¹¡£
telnet¡¢ftp¤Ê¤É¡¢Àܳ¤·¤¿¥í¥°¤ò½ÐÎϤ·¤¿¤¤¤Î
¤Ç¤¹¡£
¤É¤Î¤è¤¦¤Ë¤¹¤ì¤Ð¤è¤¤¤Î¤Ç¤·¤ç¤¦¤«¡£

¡Ö/etc/syslog.conf¡×¤Ë¤Ï¡¢°Ê²¼¤ÎÍͤʵ­½Ò¤ò¤·¤Æ¤¤¤Þ¤¹¡£

user.notice /var/log/syslog

syslog¤Î¥Ç¡¼¥â¥ó¤âºÆµ¯Æ°¤·¤¿¤Î¤Ç¤¹¤¬¡¢½ÐÎϤµ¤ì¤Þ¤»¤ó¡£

No. 4931 # ¥Ð¥ó¥¬¡¼¥É [E-mail] 2008/08/05 (²Ð) 10:01:38
>>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¥Ç¡¼¥â¥ó¤òºÆµ¯Æ°¡Ë

No. 4932 # ¥Ð¥ó¥¬¡¼¥É [E-mail] 2008/08/05 (²Ð) 10:02:46
>>4931 ¥Ð¥ó¥¬¡¼¥É
¤´¤á¤ó¤Ê¤µ¤¤¡£
4929¤Ø¤Î¥³¥á¥ó¥È¤Ç¤·¤¿¡£

No. 4933 # ¤Ù¤¿ 2008/08/19 (²Ð) 21:25:01
>>4932 ¥Ð¥ó¥¬¡¼¥É
¤ªÎ餬Ã٤쿽¤·Ìõ¤¢¤ê¤Þ¤»¤ó¡£
¤´ÀâÌÀ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£

¤É¤Á¤é¤Ë¤·¤Æ¤â¥Ç¡¼¥â¥ó¤ÎºÆµ¯Æ°¡Ê¥ê¥Õ¥ì¥Ã¥·¥å¡Ë¤¬
ɬÍפʤó¤Ç¤¹¤Í¡£

No. 4934 # ¤Ù¤¿ 2008/08/19 (²Ð) 21:28:29
Solaris8 ¤Ê¤Î¤Ç¤¹¤¬¡¢¥·¥§¥ë¤ò¼Â¹Ô¤¹¤ëºÝ¡¢
./¥·¥§¥ë̾¤È¤·¤Ê¤¤¤Èµ¯Æ°¤Ç¤­¤Þ¤»¤ó¡£

¡Ö./¡×¤Çµ¯Æ°¤¹¤ë¤Ë¤Ï¤É¤¦¤·¤¿¤é¤è¤¤¤Î¤Ç¤·¤ç¤¦¤«¡£

¡Ö./¡×¤Çµ¯Æ°¤Ç¤­¤ë¥¢¥«¥¦¥ó¥È¤¬¤¢¤ë¤Î¤Ç¡¢°ã¤¤¤òÈæ¤Ù¤Æ¤ß¤ë¤È
PATH¤ÎÊÑ¿ô¤¬°Û¤Ê¤Ã¤Æ¤¤¤Þ¤·¤¿¡£

PATH=./:/usr/bin¡¦¡¦¡¦¡¦¡¦
¤È¤«
PATH=¡¦¡¦¡¦¡¦/usr/bin:

PATHÊÑ¿ô¤ÎÃæ¤Ë¡¢¡Ö./¡×¤ÎÀßÄ꤬¤¢¤ë¡£
PATHÊÑ¿ô¤¬¡Ö¡§¡×¤Ç½ª¤ï¤Ã¤Æ¤¤¤ë¡£

¡Ö./¡×¤ò»ØÄꤷ¤Ê¤¤¤ÈÆ°¤«¤Ê¤¤¥¢¥«¥¦¥ó¥È¤Ï¡¢Î¾Êý¤¬¤Ê¤¤¾õ¶·¤È
¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
¤É¤Î¤è¤¦¤Ë´Ä¶­ÊÑ¿ô¤òÀßÄꤹ¤ì¤Ð¤è¤¤¤Î¤Ç¤¹¤«¡£

No. 4935 # zsh 2008/08/20 (¿å) 12:07:16
>>4934 ¤Ù¤¿
> ¡Ö./¡×¤Çµ¯Æ°¤¹¤ë¤Ë¤Ï¤É¤¦¤·¤¿¤é¤è¤¤¤Î¤Ç¤·¤ç¤¦¤«¡£
¡Ö./¡×¤Ê¤·¤Çµ¯Æ°¤·¤¿¤¤¤È¤¤¤¦¤³¤È¤Ç¤·¤ç¤¦¤«¡©
PATH ´Ä¶­ÊÑ¿ô¤Ë ./ ¤ò´Þ¤á¤ì¤Ð²Äǽ¤Ç¤¹¤¬¡¢¤ª´«¤á¤Ï¤·¤Þ¤»¤ó¡£
ÆÃÄê¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Ë¥¹¥¯¥ê¥×¥È¤ò½¸¤á¤Æ¡¢¤½¤Î¥Ç¥£¥ì¥¯¥È¥ê¤ò
PATH ´Ä¶­ÊÑ¿ô¤Ë´Þ¤á¤ëÊý¤¬¤è¤¤¤È»×¤¤¤Þ¤¹¡£

¤Ê¤ª¡¢Æ±¤¸Ì¾Á°¤Î¥³¥Þ¥ó¥É¡Ê¥¹¥¯¥ê¥×¥È¡Ë¤¬Ê£¿ô¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Ë
¸ºß¤¹¤ë¾ì¹ç¤Ï¡¢PATH ´Ä¶­ÊÑ¿ô¤ÇÀè¤Ë¸«¤Ä¤«¤Ã¤¿¥³¥Þ¥ó¥É
¡Êº¸Â¦¤Î¥Ñ¥¹¤«¤é½çÈÖ¤Ëõ¤·¤Ë¹Ô¤­¤Þ¤¹¡Ë¤¬¼Â¹Ô¤µ¤ì¤Þ¤¹¡£

No. 4936 # 68user 2008/08/21 (ÌÚ) 02:14:31
>>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 ¤Ê¤É¡¢º£¤É¤­¤Ê¥·¥§¥ë¤ò»È¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢
        ./
    ¤«¤é¥¿¥¤¥×¤·¤¿Êý¤¬¥Õ¥¡¥¤¥ë̾Êä´°¤ò»È¤¨¤ë¤¿¤á¡¢ÆþÎϤ¬Â®¤¤¡£

No. 4941 # ¤Ù¤¿ 2008/08/26 (²Ð) 22:00:32
>> 4935
>> 4936

ÊÖ»ö¤¬ÃÙ¤¯¤Ê¤Ã¤Æ¤¹¤ß¤Þ¤»¤ó¡£

ʬ¤«¤ê°×¤¯ÀâÌÀ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£
ÊÙ¶¯¤Ë¤Ê¤ê¤Þ¤¹¡£

No. 4942 # ¤Ù¤¿ 2008/10/08 (¿å) 20:36:52
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¥·¥§¥ë
¤Ç¤¹¡£

No. 4943 # 68user 2008/10/08 (¿å) 22:16:55
>>4942 ¤Ù¤¿
tty °¸¤Ç¤è¤¤¤Ê¤é¡¢¥µ¥Ö¥·¥§¥ë¤ò»È¤Ã¤Æ
    ( cat file.txt > /dev/tty ) >& /dev/null
¤Ç¤¹¡£

No. 4944 # ¤Ù¤¿ 2008/10/09 (ÌÚ) 20:49:11
>> 4944

¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£

> tty °¸¤Ç¤è¤¤¤Ê¤é¡¢¥µ¥Ö¥·¥§¥ë¤ò»È¤Ã¤Æ
> ( cat file.txt > /dev/tty ) >& /dev/null
> ¤Ç¤¹¡£
½ÐÍè¤Þ¤·¤¿¡£

tty °¸¤Ç¤è¤¤¤Ê¤é¡¢¥µ¥Ö¥·¥§¥ë¤ò»È¤Ã¤Æ
tty ¤ò»È¤ï¤Ê¤¤ÊýË¡¤â¤¢¤ë¤Î¤Ç¤¹¤«¡£¤¢¤ë¤Î¤Ç¤·¤¿¶µ¤¨¤Æ¤¯¤À¤µ¤¤¡£
¥µ¥Ö¥·¥§¥ë¤È¤Ï¡£
¡Ö( command )¡×¤È¤Ï¤É¤Î¤è¤Ê»È¤¤Êý¤Ç¤·¤ç¤¦¤«¡£

Îɤ¤°Æ¤¬»×¤¤É⤫¤Ð¤Ê¤«¤Ã¤¿¤Î¤Ç¡¢¡Öcat file.txt > /dev/tty¡×¤Ç
ɽ¼¨¤¬¤Ç¤­¤¿¤Î¤Ç¡¢ /dev/tty ¤ò»È¤¨¤Ð¾å¼ê¤¯¤Ç¤­¤ë¤Î¤Ç¤Ï¤Ê¤¤¤«¤È¡£

No. 4945 # 68user 2008/10/10 (¶â) 10:06:19
>>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

No. 4946 # ¤Ù¤¿ 2008/10/10 (¶â) 20:24:28
>> 4945

¤´ÀâÌÀ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£

Windows XP¤ÎÊÌüËö¤Ç½ñ¤­¹þ¤ß¤ò¤·¤¿¤é
¡Ö¥¨¥é¡¼ : ÆâÉô¥¨¥é¡¼¤¬µ¯¤³¤ê¤Þ¤·¤¿¡£¡×
¤Î²èÌ̤¬É½¼¨¤µ¤ì¤Þ¤·¤¿¡£
²¿¤«¤¢¤ë¤Î¤Ç¤·¤ç¤¦¤«¡£

No. 4947 # ÁÇ¿Í 2008/12/11 (ÌÚ) 14:52:56
¤³¤ó¤Ë¤Á¤Ï¡¥linux¤ò»È¤¤»Ï¤á¤¿¤â¤Î¤Ç¤¹¡¥
¥Ñ¥¤¥×¤Ë´Ø¤¹¤ë¼ÁÌä¤Ç¤¹¡¥´Ä¶­¤ÏVine Linux ¤Îbash¤Ç¤¹¡¥

¤¢¤ë¥Õ¥¡¥¤¥ë̾(¤³¤³¤Ç¤Ïtestfile)¤Î¤â¤Î¤ò¸¡º÷¤·¤Æ¡¤
¤µ¤é¤Ë¤½¤ÎÃæ¿È¤Ë"test"¤È¤¤¤¦Ê¸»úÎó¤ò´Þ¤à¤«¤É¤¦¤«¤ò
ÃΤꤿ¤¤¤È»×¤Ã¤Æ¤¤¤Þ¤¹¡¥
ÂоݤΥե¡¥¤¥ë¤¬¤Ò¤È¤Ä¤È¤Ï¸Â¤ê¤Þ¤»¤ó¡¥Î㤨¤Ð¡¤
...........
../Data1/testfile¡¡¢Í¡ÊÃæ¿È¡ËThis is test file.
...........
../Data2/testfile ¢Í (Ãæ¿È) This is hoge hoge.
¤È¤¤¤Ã¤¿´¶¤¸¤ÇƱ¤¸Ì¾Á°¤Î¥Õ¥¡¥¤¥ë¤¬Ê̤Υǥ£¥ì¥¯¥È¥ê¤Ë¤¢¤ê¤Þ¤¹¡¥

cat¡¤find, grep¤òÁȤ߹ç¤ï¤»¤ì¤Ð½ÐÍ褽¤¦¤Êµ¤¤Ï¤·¤Æ¤¤¤ë¤Î¤Ç¤¹¤¬¡¤
find¤·¤Æ¥ê¥¹¥Èɽ¼¨¤µ¤ì¤¿¥Õ¥¡¥¤¥ë̾¤ò°ú¿ô¤È¤·¤Æcat¥³¥Þ¥ó¥É¤Ë
ÅϤ¹¤³¤È¤¬¤Ç¤­¤Þ¤»¤ó¡¥

¼«Ê¬¤Ê¤ê¤Ë¤¤¤í¤¤¤í¸¡º÷¤·¤Þ¤·¤¿¤¬¡¤¤è¤¯¤ï¤«¤ê¤Þ¤»¤ó¤Ç¤·¤¿¡¥¡¥
¤è¤í¤·¤¯¤´¶µ¼ø¤¯¤À¤µ¤¤¡¥

No. 4948 # 68user 2008/12/11 (ÌÚ) 17:17:18
>>4947 ÁÇ¿Í
¿Æ¥Ç¥£¥ì¥¯¥È¥ê°Ê²¼¤Î testfile ¤È¤¤¤¦¥Õ¥¡¥¤¥ë̾¤Î¥Õ¥¡¥¤¥ëÃæ¤Ë
test ¤È¤¤¤¦Ê¸»úÎ󤬤¢¤ë¤â¤Î¤ò¥ê¥¹¥È¥¢¥Ã¥×¡¢¤Ç¤¢¤ì¤Ð
    % find ../ -name testfile | xargs grep -l test
¤Ç¤·¤ç¤¦¤«¡£¤½¤ì¤ò cat ¤¹¤ë¤Ê¤é
    % find ../ -name testfile | xargs grep -l test | xargs cat
¤Ç¤¹¤«¤Í¡£

No. 4949 # ÁÇ¿Í 2008/12/11 (ÌÚ) 18:35:48
>>4948 68user
¤Ç¤­¤Þ¤·¤¿¡ªÅú¤¨¤Ïxargs¤Ç¤·¤¿¤«¡¥
ÊÙ¶¯ÉÔ­¤Ç¶²½Ì¤Ç¤¹¡¥¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤·¤¿¡¥

No. 4950 # º´Æ£¾æ»Õ [E-mail] 2008/12/12 (¶â) 17:03:36
RSA£±¤Î¥×¥í¥°¥é¥à¤ò¼Â¹Ô¤¹¤ë¤Ë¤¢¤Ã¤¿¤Ã¤Æ¥¨¥é¡¼¤¬Â¿¤¯¤Ç¤Þ¤¹¡£¤³¤ì¤Î¥Ø¥Ã¥À¥Õ¥¡¥¤¥ë¤Ï¤É¤³¤Ë¤¢¤ë¤Î¤Ç¤·¤ç¤¦¤«¡£

No. 4951 # 68user 2008/12/23 (²Ð) 17:49:12
>>4950 º´Æ£¾æ»Õ
OpenSSL ¤ËƱº­¤µ¤ì¤Æ¤¤¤Þ¤¹¤Î¤Ç¡¢OpenSSL ¤ò¥¤¥ó¥¹¥È¡¼¥ëºÑ¤ß¤Ç¤¢¤ì¤Ð
/usr/include/openssl ¤ä /usr/local/openssl/include ¤Ê¤É¤Ë¤¢¤ë¤Ï¤º¤Ç¤¹¡£
¥³¥ó¥Ñ¥¤¥ë»þ¤Ë -I /usr/include/openssl ¤Ê¤É¤Î¥ª¥×¥·¥ç¥ó¤òÉղ䷤Ƥ¯¤À¤µ¤¤¡£

No. 4952 # kawasaki 2009/01/13 (²Ð) 18:11:06
½é¤á¤ÆÅê¹Æ¤·¤Þ¤¹¡£
Á´¤¯¤Î½é¿´¼Ô¤Ç¤¹¤¬¡¢¼¡¤Î¤³¤È¤ò¤ª¿Ò¤Í¤·¤Þ¤¹¡£
Debian4.0¤Ç¤¹¤¬¡¢¥Ç¥¹¥¯¥È¥Ã¥×¤Ë¥¢¥¤¥³¥ó¤òºîÀ®¤·¡¢¥¯¥ê¥Ã¥¯¤¹¤ë¤È
¥×¥í¥°¥é¥à¤òµ¯Æ°¤¹¤ë¤è¤¦¤Ë¤·¤¿¤¤¤Î¤Ç¤¹¤¬¤É¤Î¤è¤¦¤Ë¤¹¤ì¤Ð¤¤¤¤¤Î
¤Ç¤·¤ç¤¦¤«¡£

#su - abc ¡Çabc¤Ç¥í¥°¥¤¥ó¤·¡¢¡Ösh /usr/lib/scripts/claim/ORC_CLAIM_SERVER.sh 5001 /var/tmp¡×

kterm¤Ëµ­½Ò¤Ê¤É¤ª¿Ò¤Í¤·¤Þ¤¹¡£

No. 4953 # 68user 2009/01/14 (¿å) 02:02:57
>>4952 kawasaki
¤ä¤êÊý¤Ï¥¤¥ó¥¹¥È¡¼¥ë¤·¤¿¥Ç¥¹¥¯¥È¥Ã¥×´Ä¶­ (GNOME ¤È¤« KDE ¤È¤«) ¤Ë¤è¤ë¤È»×¤¤¤Þ¤¹¡£

¤¬¡¢¤ª»È¤¤¤Î¥Ç¥¹¥¯¥È¥Ã¥×´Ä¶­¤ò¤ª¶µ¤¨¤¤¤¿¤À¤¤¤¿¤È¤·¤Æ¤â¡¢¤³¤³¿ôǯ¤Ï UNIX ·Ï
¥Ç¥¹¥¯¥È¥Ã¥×´Ä¶­¤ò¤¤¤¸¤Ã¤Æ¤¤¤Ê¤¤¤Î¤Ç¡¢¤ï¤¿¤·¤Ï¤µ¤Ã¤Ñ¤ê¤ï¤«¤ê¤Þ¤»¤ó¡£

No. 4954 # ucc¤³¡¼¤Ò¡¼ 2009/01/18 (Æü) 15:47:46
½é¤á¤Þ¤·¤Æ¡£
¤Á¤ç¤Ã¤Èµ¤¤Ë¤Ê¤Ã¤¿¤Î¤Ç¸À¤ï¤»¤Æ²¼¤µ¤¤¡£

UNIX¤ÎÉô²° ¥³¥Þ¥ó¥É¸¡º÷: Mach¤Ç¤ÎÀâÌÀ¤Ç¡¢

ȯ²»¤Ï¡¢ÉáÄ̤ʤé [¤Þ¤Ã¤Ï] ¤¬Àµ¤·¤¤¤È»×¤¦¤¬¡¢¥¢¥á¥ê¥«¿Í¤Ï "ch" ¤Îȯ²»¤¬¤Ç¤­¤Ê¤¤¤é¤·¤¯¤Æ
  [¤Þ¡¼¤¯] [¤Þ¤Ã¤¯] ¤È¤¤¤Ã¤Æ¤¤¤ë (ȯ²»¤Ç¤­¤Ê¤¤¤è¤¦¤Ê̾Á°¤òÉÕ¤±¤ë¤Ê¤È¸À¤¤¤¿¤¤)¡£

¤È¤¢¤ê¤Þ¤¹¤¬¡¢È¯²»¤Ç¤­¤Ê¤¤¤ó¤¸¤ã¤Ê¤¯¤Æ¡¢¤½¤¦¤¤¤¦¥¹¥Ú¥ë¤À¤È¡¢
±Ñ¸ìŪ¤Ë¤Ï¡¢¥Þ¡¼¥¯¤Ã¤Æ¸Æ¤Ö¤À¤±¤Ç¤¹¡£h¤Î2¤ÄÁ°¤Ï¡¢a¤Ä¤Þ¤ê¥¨¥¤¤Ã¤Æȯ²»¤·¡¢
c¤Ï¡¢´ðËÜŪ¤Ë¤Ï¡¢¥Ã¥¯¤Ã¤Æȯ²»¤Ë¤Ê¤ê¡¢
²¿¤â¹Í¤¨¤º¤Ë¤Ä¤Ê¤²¤ÆÆɤà¤È¡¢¥Þ¡¼¥¯¤Ã¤ÆÆɤߤޤ¹¡£

¤Ç¡¢¤Ç¤â¤Ê¤ó¤Ç¡¢¥Þ¥Ã¥Ï¤¬Àµ¤·¤¤¤«¤È¸À¤¦¤È¡¢
¤³¤ì¤Ï¡¢¥è¡¼¥í¥Ã¥Ñ·Ï¤Î¸À¸ì¤Î¿¤¯¤¬¡¢
mach¤Ã¤Æ½ñ¤¤¤Æ¤Þ¤Ã¤Ï¤Ã¤ÆÆɤफ¤é¤Ç¤¹¡£
ȯ²»¤Ç¤­¤Ê¤¤¤ï¤±¤¸¤ã¤Ê¤¤¤Ç¤¹¤è^^;

No. 4955 # 68user 2009/01/28 (¿å) 02:30:07
>>4954 ucc¤³¡¼¤Ò¡¼
¤´»ØŦ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£¤¬¡¢ÀµÄ¾¤Ê¤È¤³¤í¤ò¿½¤·¤Þ¤¹¤È¡¢³Ø¤¬¤Ê¤¤¤Î¤Ç
¿¿µ¶¤Î¤Û¤É¤¬È½ÃǤǤ­¤Þ¤»¤ó¡£¤è¤Ã¤Æ¡¢³ºÅö¥³¥ó¥Æ¥ó¥Ä¤è¤ê¡¢
>>4954 ucc¤³¡¼¤Ò¡¼
¤Îȯ¸À¤Ë¥ê¥ó¥¯¤òÄ¥¤é¤»¤Æ¤¤¤¿¤À¤­¤Þ¤¹¤Î¤Ç¡¢¤¢¤È¤Ï¤ªÆɤߤ¤¤¿¤À¤¤¤¿Êý¤Ë
¤´È½ÃǤ¤¤¿¤À¤¯¤³¤È¤Ç¤´Î»¾µ¤¯¤À¤µ¤¤¡£

No. 4957 # ¤¿¤± 2009/02/10 (²Ð) 13:43:32
¤¤¤Ä¤âÊØÍø¤Ë»²¾È¤·¤Æ¤¤¤Þ¤¹¡£
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¡×¤«¤Ê¡©

No. 4958 # 68user 2009/02/13 (¶â) 00:15:02
>>4957 ¤¿¤±
> ¡Öman Solaris10 ls(1)¡×¤Î¥ê¥ó¥¯À褬´Ö°ã¤¨¤Æ¤¤¤ë¤Î¤Ëµ¤¤¬¤Ä¤¤¤¿¤Î¤Ç¤´Ï¢Íí¤Ç¤¹¡£
¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£Sun ¤Î¥Ú¡¼¥¸¤Ï¤¿¤Þ¤Ë URL ¤¬ÊѤï¤ë¤ó¤Ç¤¹¤è¤Í¡Ä¡£
ºÇ¿·¾ðÊó¤Ç¹¹¿·¤·¤Æ¤ª¤­¤Þ¤·¤¿¡£

NetBSD ¤Î manpage ¤Ø¤Î¥ê¥ó¥¯¤âɽ¼¨¤µ¤ì¤Ê¤¯¤Ê¤Ã¤Æ¤¤¤Þ¤¹¤¬¡¢¤½¤Î¤¦¤Áľ¤·¤Þ¤¹¡£

No. 4960 # ë¸ý¡¡¸ù [E-mail] 2009/02/27 (¶â) 18:25:50
SEÊ罸¤Î·ï¤Ç½ñ¤­¹þ¤ß¤µ¤»¤Æ¤¤¤¿¤À¤­¤Þ¤·¤¿¡£
ÂçÊѶ½Ì£¤¬¤¢¤ê¤Þ¤¹¤Î¤Ç¡¢°ìÅپܺ٤ò¶µ¤¨¤Æ¤¤¤¿¤À¤±¤Ê¤¤¤Ç¤·¤ç¤¦¤«¡£
¤´Ï¢Íí¤ò¤ªÂÔ¤Á¤·¤Æ¤¤¤Þ¤¹¡£

No. 4961 # 68user 2009/02/28 (ÅÚ) 00:14:30
¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£¥á¡¼¥ë¤òÁ÷¤ê¤Þ¤¹¡£

No. 4974 # ¤Ù¤¿ 2009/03/19 (ÌÚ) 19:53:35
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";

No. 4975 # ¤Ù¤¿ 2009/03/19 (ÌÚ) 19:57:17
>> 4974

´Ä¶­¤ò½ñ¤­Ëº¤ì¤Þ¤·¤¿¡£

´Ä¶­¤Ï¡¢
    Solaris8
    Perl v5.8.5

No. 4976 # 68user 2009/03/21 (ÅÚ) 00:36:01
>>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»þ¤ÈÈæ³Ó¤¹¤ëÉôʬ¤Ï¼ê¤Ç½ñ¤«¤Ê¤¤¤È
¤¤¤±¤Ê¤¤¤è¤¦¤Ë¸«¤¨¤Þ¤¹¤Î¤Ç¡¢¥¤¥Þ¥¤¥Á¤Ç¤¹¤Í¡£

No. 4977 # ¤Ù¤¿ 2009/03/22 (Æü) 23:25:34
>>4976 68user

¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£
¤Þ¤¿¡¢ÊÖ»ö¤¬ÃÙ¤¯¤Ê¤Ã¤Æ¿½¤·Ìõ¤¢¤ê¤Þ¤»¤ó¡£

> find . -newer foo
¤Ç¤¹¤«¡£
¥·¥§¥ë¤Ç¡¢find¤Î·ë²Ì¤ò¼èÆÀ¤¹¤ë¤³¤È¤â¹Í¤¨¤Þ¤·¤¿¡£

> ¤¢¤¿¤ê¤«¤È»×¤¤¤Þ¤¹¤¬¡¢¤¤¤º¤ì¤âÁ°Æü9»þ¤ÈÈæ³Ó¤¹¤ëÉôʬ¤Ï¼ê¤Ç½ñ¤«¤Ê¤¤¤È
> ¤¤¤±¤Ê¤¤¤è¤¦¤Ë¸«¤¨¤Þ¤¹¤Î¤Ç¡¢¥¤¥Þ¥¤¥Á¤Ç¤¹¤Í¡£
Perl¤ò»È¤ª¤¦¤È¤·¤Æ¤¤¤¿¤Î¤Ç¡¢¼ê¤Ç½ñ¤«¤Ê¤¯¤Æ¤Ï¤¤¤±¤Ê¤¤¤È»×¤Ã¤Æ¤¤¤Þ¤·¤¿
¤³¤ÎÉôʬ¤ÎÎɤ¤ÊýË¡¤¬¼Â¸½¤Ç¤­¤Ê¤¯¤Æ¡£

´Ä¶­¾å¡¢¶µ¤¨¤Æ夤¤¿¥â¥¸¥å¡¼¥ë¤âÆþ¤ì¤ë¤³¤È¤¬¤Ç¤­¤Þ¤»¤ó¡£

No. 4978 # 68user 2009/03/23 (·î) 22:00:19
>>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";
}

No. 4979 # ¤Ù¤¿ 2009/03/24 (²Ð) 21:19:39
>> 4978

¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£

¶µ¤¨¤Æ¤¤¤¿¤À¤¤¤¿ÊýË¡¤Ç¤¹¤È¡¢Á°Æü£¹»þ¤Î¥¿¥¤¥à¥¹¥¿¥ó¥×¤Î
¼èÆÀ¤òPerl¤Ç¤ä¤ì¤Ð¤¢¤È¤Ï¡¢¥·¥§¥ë¥¹¥¯¥ê¥×¥È¤Ç¤â¤Ç¤­¤Þ¤¹
¤Í¡£

¼Â¤Î¤È¤³¤í¡¢find¤ò»È¤ï¤Ê¤¤¡¢Perl¤Ç¤Îµ­½Ò¡¢¸¯¤êÊý¤ò¶µ¤¨¤Æ
¤Û¤·¤¤¤Î¤Ç¤¹¤¬¡£

No. 4980 # ¤Ù¤¿ 2009/03/25 (¿å) 09:16:00
>>4978 68user

> find ¤ò»È¤ï¤Ê¤¤¤Ê¤é¡¢
> ºòÆü9»þ¤ÎÆü»þ (20090323090000) ¤ò Time::Local ¤Ç epoch time ¤Ë
> ľ¤·¤Æ¤ª¤­¡¢stat() ¤¬ÊÖ¤¹ºÇ½ª¹¹¿·»þ¹ï¤ÈÈæ³Ó¤¹¤ì¤Ð¤è¤¤¤Ç¤·¤ç¤¦¡£

Time::Local ¤Ç epoch time ¤Ëľ¤·¤Æ¤Î¡Öepoch time¡×¤È¤Ï
¤Ê¤ó¤Ç¤·¤ç¤¦¤«¡£

No. 4982 # ¤Á¤Ó¥ô¥¡¥ë [URL] [E-mail] 2009/04/05 (Æü) 23:19:53
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 ¤Ç½ªÎ»¤·¤Þ¤·¤¿

No. 4983 # 68user 2009/04/06 (·î) 11:36:31
>>4982 ¤Á¤Ó¥ô¥¡¥ë
¥ª¥×¥·¥ç¥ó -lX11 ¤¬Â­¤ê¤Æ¤¤¤Þ¤»¤ó¡£¤Þ¤º¤Ï
    http://x68000.q-e-d.net/~68user/xprogram/xlib-1.html
¤«¤é¤É¤¦¤¾¡£

No. 4984 # 68user 2009/04/06 (·î) 11:37:59
>>4980 ¤Ù¤¿
> ¡Öepoch time¡×¤È¤Ï¤Ê¤ó¤Ç¤·¤ç¤¦¤«¡£
http://oku.edu.mie-u.ac.jp/~okumura/php/date.php
    UNIX ¤Ç Epoch ¤È¤Ï¡¤¶¨ÄêÀ¤³¦»þ¡ÊUTC¡¤¤¤¤ï¤æ¤ë¥°¥ê¥Ë¥Ã¥¸É¸½à»þ GMT¡Ë
    1970 ǯ¸µÃ¶ 0 »þ 0 ʬ¤Î¤³¤È¤Ç¤¹¡£ UNIX ¤ÎÆâÉô¤Ç¤Ï¤³¤Î½Ö´Ö¤«¤é¤ÎÉÿô¤Ç
    »þ¹ï¤òɽ¤·¤Æ¤¤¤Þ¤¹¡£
¤Î¤³¤È¤Ç¤¹¡£

No. 4985 # ¤Á¤Ó¥ô¥¡¥ë [URL] [E-mail] 2009/04/06 (·î) 14:46:01
>>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
¤È½Ð¤Æ¤É¤¦¤¹¤ì¤Ð¤¤¤¤¤«Ì¤äƤ¤¤Þ¤¹

No. 4986 # 68user 2009/04/07 (²Ð) 23:39:02
>>4985 ¤Á¤Ó¥ô¥¡¥ë
> Found a swap file by the name "/etc/X11/.xorg.conf.swp"
vim ¤¬ºîÀ®¤·¤¿¥¹¥ï¥Ã¥×¥Õ¥¡¥¤¥ë¤Ç¤·¤ç¤¦¤«¤é¡¢.xorg.conf.swp ¤ò
ºï½ü¤·¤Æ¡¢root ¸¢¸Â¤Ç xorg.conf ¤ò¹¹¿·¤¹¤ì¤Ð¤è¤¤¤È»×¤¤¤Þ¤¹¡£

No. 4988 # ¤Ù¤¿ 2009/04/11 (ÅÚ) 14:29:40
>> 4978

> find . -newer foo ¤ÎÊýË¡¤ò½ñ¤¤¤Æ¤ª¤­¤Þ¤¹¡£find ¤ò»È¤ï¤Ê¤¤¤Ê¤é¡¢
> ºòÆü9»þ¤ÎÆü»þ (20090323090000) ¤ò Time::Local ¤Ç epoch time ¤Ë
> ľ¤·¤Æ¤ª¤­¡¢stat() ¤¬ÊÖ¤¹ºÇ½ª¹¹¿·»þ¹ï¤ÈÈæ³Ó¤¹¤ì¤Ð¤è¤¤¤Ç¤·¤ç¤¦

¤ÎÊýË¡¤ò¶µ¤¨¤ÆÍߤ·¤¤¤Î¤Ç¤¹¤¬¡£

No. 4989 # ¤Ù¤¿ 2009/04/21 (²Ð) 20:16:51
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¥·¥§¥ë

No. 4990 # 68user 2009/04/22 (¿å) 03:06:48
>>4989 ¤Ù¤¿
basename¡¦dirname ¥³¥Þ¥ó¥É¤ò»È¤¦¤Î¤Ï¥À¥á¤Ç¤¹¤«¤Í¡£

No. 4991 # ¤Ù¤¿ 2009/04/22 (¿å) 08:52:24
>>4990 68user

>basename¡¦dirname ¥³¥Þ¥ó¥É¤ò»È¤¦¤Î¤Ï¥À¥á¤Ç¤¹¤«¤Í¡£
¤â¹Í¤¨¤Þ¤·¤¿¤¬¡¢
½ÐÍè¤ì¤Ð¡¢»È¤ï¤Ê¤¤ÊýË¡¤Ç¤È

No. 4992 # zsh 2009/04/22 (¿å) 11:56:48
>>4991 ¤Ù¤¿
ÉáÄ̤˹ͤ¨¤ë¤È¡¢¤½¤ìÀìÍѤΥ³¥Þ¥ó¥É¤¬¤¢¤ë¤ó¤À¤«¤é¤½¤ì¤ò»È¤¦¤Ù¤­¡£

sed ¤Ç¤ä¤ê¤¿¤¤¤Ê¤é¤³¤ó¤Ê´¶¤¸¤«¤Ê¤¡¡©
- ¥Õ¥¡¥¤¥ë̾
echo ${FILE} | sed 's/.*\///g'
- ¥Ñ¥¹Ì¾
echo ${FILE} | sed 's/\(.*\/\)[\/]*/\1/g'

No. 4993 # ¤Ù¤¿ 2009/04/22 (¿å) 12:12:04
>>4992 zsh

> ÉáÄ̤˹ͤ¨¤ë¤È¡¢¤½¤ìÀìÍѤΥ³¥Þ¥ó¥É¤¬¤¢¤ë¤ó¤À¤«¤é¤½¤ì¤ò»È¤¦¤Ù¤­¡£
¤¹¤ß¤Þ¤»¤ó¡£

> - ¥Ñ¥¹Ì¾
> echo ${FILE} | sed 's/\(.*\/\)[\/]*/\1/g'
¤¬¡¢¾å¼ê¤¯¤¤¤­¤Þ¤»¤ó¤Ç¤·¤¿¡£
¥Ñ¥¹Ì¾¤¬¤È¤ì¤Þ¤»¤ó¡£¥Õ¥ë¥Ñ¥¹¤¬Ê֤äƤ­¤Þ¤¹¡£

/aaa/bbb/txt.csv ¢ª¡¡/aaa/bbb/txt.csv
/txt.csv ¢ª¡¡/txt.csv

No. 4994 # ¤Ù¤¿ 2009/04/22 (¿å) 12:15:00
>>4992 zsh

> ÉáÄ̤˹ͤ¨¤ë¤È¡¢¤½¤ìÀìÍѤΥ³¥Þ¥ó¥É¤¬¤¢¤ë¤ó¤À¤«¤é¤½¤ì¤ò»È¤¦¤Ù¤­¡£
¤¹¤ß¤Þ¤»¤ó¡£

> - ¥Ñ¥¹Ì¾
> echo ${FILE} | sed 's/\(.*\/\)[\/]*/\1/g'
¤¬¡¢¾å¼ê¤¯¤¤¤­¤Þ¤»¤ó¤Ç¤·¤¿¡£
¥Ñ¥¹Ì¾¤¬¤È¤ì¤Þ¤»¤ó¡£¥Õ¥ë¥Ñ¥¹¤¬Ê֤äƤ­¤Þ¤¹¡£
¤½¤ì¤È¡¢¥Õ¥¡¥¤¥ë̾¤Î¤ß¾ì¹ç¤Ï¡¢Ãͤ¬¤Ê¤·¤È¤·¤¿¤¤¤Î¤Ç¤¹¤¬¡£

/aaa/bbb/txt.csv ¢ª¡¡/aaa/bbb/txt.csv
/txt.csv ¢ª¡¡/txt.csv

No. 4996 # zsh 2009/04/22 (¿å) 17:14:30
>>4994 ¤Ù¤¿
¼ºÎ餷¤Þ¤·¤¿¡£¢­¤Ç¤É¤¦¤Ç¤·¤ç¤¦¤«¡©

echo ${FILE} | sed -n -e 's#\(.*\)/[^/]*#\1#p'

No. 4997 # ¤Ù¤¿ 2009/04/22 (¿å) 19:10:04
>>4996 zsh
¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£
¥Ñ¥¹Ì¾¤ò¼è¤ê½Ð¤¹¤³¤È¤¬¤Ç¤­¤Þ¤·¤¿¡£
¤¿¤À¡¢°Ê²¼¤ÎÍͤ˾ì¹ç¡¢¾å¼ê¤¯¤¤¤­¤Þ¤»¤ó¡£

¡ÖFILE=/txt.csv¡×¤Î¾ì¹ç
    ¡Ö/¡×¤È¤Ê¤ê¤Þ¤»¤ó¡£
    ¥Ö¥é¥ó¥¯¤È¤¤¤¦¤«¡¢²þ¹Ô¤·¤Þ¤¹¡£
    ¡Ö/¡×¤À¤±¼è¤ê½Ð¤¹¤È¤¤¤¦¤Î¤Ï̵Íý¤Ê¤Î¤Ç¤·¤ç¤¦¤«¡£

¡ÖFILE=txt.csv¡×¤Î¾ì¹ç
    ¥Ö¥é¥ó¥¯¤È¤Ê¤ê¤Þ¤¹¡£
    Àµ¤·¤¤Æ°¤­¤Ê¤Î¤Ç¤·¤ç¤¦¤«¡£

No. 4998 # ¤Õ¤¯¤· 2009/04/22 (¿å) 22:39:27
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}

No. 4999 # zsh 2009/04/23 (ÌÚ) 11:23:01
>>4997 ¤Ù¤¿
> ¡ÖFILE=/txt.csv¡×¤Î¾ì¹ç
¥Ñ¥¹Ì¾ËöÈø¤Î / ¤ò½ÐÎϤ·¤Ê¤¤¤è¤¦¤Ë¤·¤Æ¤¤¤¿¤¿¤á¤Ç¤¹¤Í¡£

echo ${FILE} | sed -n -e 's#\(.*/\)[^/]*#\1#p'

¤³¤¦¤¹¤ì¤Ð½ÐÎϤµ¤ì¤ë¤È»×¤¤¤Þ¤¹¤¬¡¢
µÕ¤Ë /hoge/fuga.txt ¤Î¤è¤¦¤Ê¾ì¹ç¤Ç¤â /hoge/ ¤È¤Ê¤ê¤Þ¤¹¡£

> ¡ÖFILE=txt.csv¡×¤Î¾ì¹ç
¥Ñ¥¹¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¤Î¤Ç¡¢¥Ö¥é¥ó¥¯¤ÇÀµ¤·¤¤¤È»×¤Ã¤Æ¤¤¤Þ¤¹¤¬¡£
¡Ê¤½¤¦¤¤¤Ã¤¿¾ò·ï¤â¤¢¤ê¤Þ¤»¤ó¤Ç¤·¤¿¤·¡£¡Ë

>>4998 ¤Õ¤¯¤·
nawk ¤Ï»²¾ÈÅϤ·¤Ç¤­¤Ê¤¤¤Ï¤º¤Ê¤Î¤Ç¡¢¤½¤¦¤¤¤¦½ñ¤­Êý¤Ç¤Ï¤Ç¤­¤Þ¤»¤ó¡£
¤¿¤À nawk ¤Ç¤Ï¡¢¥æ¡¼¥¶´Ø¿ô¤Î°ú¿ô¤È¤·¤ÆÄêµÁ¤µ¤ì¤¿ÊÑ¿ô¤ò½ü¤­¡¢
¤¹¤Ù¤Æ¥°¥í¡¼¥Ð¥ëÊÑ¿ô¤À¤È»×¤¦¤Î¤Ç¡¢¤ä¤í¤¦¤È¤·¤Æ¤¤¤ë¤³¤È¤Ï¤Ç¤­¤Þ¤¹¡£

No. 5000 # ¤Ù¤¿ 2009/04/23 (ÌÚ) 13:10:32
>>4997 ¤Ù¤¿

¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤·¤¿¡£
½ÐÎϤµ¤ì¤Þ¤·¤¿¡£

No. 5001 # ¤Ù¤¿ 2009/04/23 (ÌÚ) 13:19:29
>>4999 zsh

¤ªÎéÀè¸í¤ê¤Ç¤¹¤ß¤Þ¤»¤ó¡£
¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£


>> ¡ÖFILE=txt.csv¡×¤Î¾ì¹ç
> ¥Ñ¥¹¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¤Î¤Ç¡¢¥Ö¥é¥ó¥¯¤ÇÀµ¤·¤¤¤È»×¤Ã¤Æ¤¤¤Þ¤¹¤¬¡£
> ¡Ê¤½¤¦¤¤¤Ã¤¿¾ò·ï¤â¤¢¤ê¤Þ¤»¤ó¤Ç¤·¤¿¤·¡£¡Ë

No. 4994¤Ç¡¢¼«Ê¬¤Ç¥Õ¥¡¥¤¥ë̾¤Î¤ß¤Î¾ì¹ç¡¢Ãͤʤ·¤È¤·¤¿¤¤¤È
½ñ¤¤¤Æ¤ª¤­¤Ê¤¬¤éÀµ¤·¤¤Æ°¤­¤Ê¤ó¤Ç¤¹¤«¤È¼ÁÌ䤹¤ß¤Þ¤»¤ó¤Ç
¤·¤¿¡£

No. 5002 # sfish 2009/04/23 (ÌÚ) 14:46:19
>>4998 ¤Õ¤¯¤·

¤¨¤Ã¡¢Solairs8 ¤Î nawk ¤Ã¤Æ return ¤ò»È¤¨¤Ê¤¤¤ó¤Ç¤·¤ç¤¦¤«¡©

No. 5003 # zsh 2009/04/23 (ÌÚ) 15:58:34
>>5002 sfish
man ¤Ë¤Ï
return [expr]
¤Èµ­ºÜ¤¬¤¢¤Ã¤¿¤Î¤Ç¡¢¥ê¥¿¡¼¥ó¥³¡¼¥É¤òÊÖ¤¹¤â¤Î¤À¤È»×¤Ã¤Æ¤¤¤Þ¤·¤¿¤¬¡¢
³Î¤«¤ËÃͤòÊÖ¤¹¤³¤È¤â½ÐÍè¤Þ¤·¤¿¡£¤³¤Ã¤Á¤ÎÊý¤¬¤¤¤¤¤Ç¤¹¤Í¡£

No. 5004 # ¤Õ¤¯¤· 2009/04/23 (ÌÚ) 21:06:27
>>4999 zsh

> ¤¿¤À nawk ¤Ç¤Ï¡¢¥æ¡¼¥¶´Ø¿ô¤Î°ú¿ô¤È¤·¤ÆÄêµÁ¤µ¤ì¤¿ÊÑ¿ô¤ò½ü¤­¡¢
> ¤¹¤Ù¤Æ¥°¥í¡¼¥Ð¥ëÊÑ¿ô¤À¤È»×¤¦¤Î¤Ç¡¢¤ä¤í¤¦¤È¤·¤Æ¤¤¤ë¤³¤È¤Ï¤Ç¤­¤Þ¤¹¡£
¤É¤¦¤¤¤¦¤³¤È¤Ç¤·¤ç¤«¡£
nakw¤Ç´Ø¿ô¤òºî¤ë¤Î¤¬ÉÔ´·¤ì¤Ê¤â¤Î¤Ç¡¢

nawkÆâ¤ÇÄêµÁ¤·¤¿ÊÑ¿ô¤Ï¥°¥í¡¼¥Ð¥ëÊÑ¿ô¤Ê¤Î¤Ç¡¢nawkÆâ¤Ç¤¢¤ì¤Ð¡¢
¥æ¡¼¥¶ÄêµÁ´Ø¿ô¤Ç¤â»²¾È¤ä½ñ¤­´¹¤¨¤¬¤Ç¤­¤ë¤È¤¤¤¦¤³¤È¤Ç¤·¤ç¤¦¤«¡£
¤Þ¤¿¡¢
¥æ¡¼¥¶ÄêµÁ´Ø¿ô¤Ê¤¤¤ÇÄêµÁ¤·¤¿ÊÑ¿ô¤Ï¡¢´Ø¿ôÆâ¤Ç¤·¤«Í­¸ú¤È¤Ê¤é¤Ê¤¤
¤È¤¤¤¦¤³¤È¤Ç¤·¤ç¤¦¤«¡£
Îã¤Ê¤É¤òºÜ¤»¤Æ¤¯¤ì¤ë¤È¤¢¤ê¤¬¤¿¤¤¤Î¤Ç¤¹¤¬¡£

No. 5005 # zsh 2009/04/27 (·î) 17:13:54
>>5004 ¤Õ¤¯¤·
> nawkÆâ¤ÇÄêµÁ¤·¤¿ÊÑ¿ô¤Ï¥°¥í¡¼¥Ð¥ëÊÑ¿ô¤Ê¤Î¤Ç¡¢nawkÆâ¤Ç¤¢¤ì¤Ð¡¢
> ¥æ¡¼¥¶ÄêµÁ´Ø¿ô¤Ç¤â»²¾È¤ä½ñ¤­´¹¤¨¤¬¤Ç¤­¤ë¤È¤¤¤¦¤³¤È¤Ç¤·¤ç¤¦¤«¡£

¤½¤ÎÄ̤ê¤Ç¤¹¡£

¤¿¤À¡¢
>>5002 sfish
¤Ç return ¤ÇÃͤ¬Ì᤻¤ë¤³¤È¤ò¶µ¤¨¤Æ夤¤¿¤Î¤Ç
´Ø¿ô¦¤Ï¡¢
---------------------------------
function chk1(arg1) {
        sub(/^"*/,"",arg1); sub(/"*$/,"",arg1);
        return arg1;
}
---------------------------------
¤Î¤è¤¦¤Ë¤·¤Æ¡¢¸Æ¤Ó½Ð¤·Â¦¤Ï
---------------------------------
UserID = chk1($1);
---------------------------------
¤È¤¹¤ì¤Ð¡¢¤ä¤í¤¦¤È¤·¤Æ¤¤¤ë¤³¤È¤¬¤Ç¤­¤ë¤È»×¤¤¤Þ¤¹¡£

Prev< No. 4905¡Á5005> Next  [ºÇ¿·È¯¸À¤ËÌá¤ë] [²áµî¥í¥°°ìÍ÷]