Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

LINUX SHELL ÕýÔò±í´ïʽÓï·¨


Ò»¸öÕýÔò±í´ïʽ¾ÍÊÇÓÉÆÕͨ×Ö·û£¨ÀýÈç×Ö·û a µ½ z£©ÒÔ¼°ÌØÊâ×Ö·û£¨³ÆΪԪ×Ö·û£©×é³ÉµÄÎÄ×Öģʽ¡£¸ÃģʽÃèÊöÔÚ²éÕÒÎÄ×ÖÖ÷Ìåʱ´ýÆ¥ÅäµÄÒ»¸ö»ò¶à¸ö×Ö·û´®¡£ÕýÔò±í´ïʽ×÷Ϊһ¸öÄ£°å£¬½«Ä³¸ö×Ö·ûģʽÓëËùËÑË÷µÄ×Ö·û´®½øÐÐÆ¥Åä¡£

½«ÏÂÒ»¸ö×Ö·û±ê¼ÇΪһ¸öÌØÊâ×Ö·û¡¢»òÒ»¸öÔ­Òå×Ö·û¡¢»òÒ»¸ö ºóÏòÒýÓᢻòÒ»¸ö°Ë½øÖÆתÒå·û¡£ÀýÈ磬'n' Æ¥Åä×Ö·û "n"¡£'\n' Æ¥ÅäÒ»¸ö»»Ðзû¡£ÐòÁÐ '\\' Æ¥Åä "\" ¶ø "\(" ÔòÆ¥Åä "("¡£

Æ¥ÅäÊäÈë×Ö·û´®µÄ¿ªÊ¼Î»Öá£

Æ¥ÅäÊäÈë×Ö·û´®µÄ½áÊøλÖá£

Æ¥ÅäÇ°ÃæµÄ×Ó±í´ïʽÁã´Î»ò¶à´Î¡£ÀýÈ磬zo* ÄÜÆ¥Åä "z" ÒÔ¼° "zoo"¡£ * µÈ¼ÛÓÚ{0,}¡£

Æ¥ÅäÇ°ÃæµÄ×Ó±í´ïʽһ´Î»ò¶à´Î¡£ÀýÈ磬'zo+' ÄÜÆ¥Åä "zo" ÒÔ¼° "zoo"£¬µ«²»ÄÜÆ¥Åä "z"¡£+ µÈ¼ÛÓÚ {1,}¡£

Æ¥ÅäÇ°ÃæµÄ×Ó±í´ïʽÁã´Î»òÒ»´Î¡£ÀýÈ磬"do(es)?" ¿ÉÒÔÆ¥Åä "do" »ò "does" ÖеÄ"do" ¡£? µÈ¼ÛÓÚ {0,1}¡£
{n} 
n ÊÇÒ»¸ö·Ç¸ºÕûÊý¡£Æ¥ÅäÈ·¶¨µÄ n ´Î¡£ÀýÈ磬'o{2}' ²»ÄÜÆ¥Åä "Bob" ÖÐµÄ 'o'£¬µ«ÊÇÄÜÆ¥Åä "food" ÖеÄÁ½¸ö o¡£
{n,} 
n ÊÇÒ»¸ö·Ç¸ºÕûÊý¡£ÖÁÉÙÆ¥Åän ´Î¡£ÀýÈ磬'o{2,}' ²»ÄÜÆ¥Åä "Bob" ÖÐµÄ 'o'£¬µ«ÄÜÆ¥Åä "foooood" ÖеÄËùÓÐ o¡£'o{1,}' µÈ¼ÛÓÚ 'o+'¡£'o{0,}' ÔòµÈ¼ÛÓÚ 'o*'¡£
{n,m} 
m ºÍ n ¾ùΪ·Ç¸ºÕûÊý£¬ÆäÖÐn <= m¡£×îÉÙÆ¥Åä n ´ÎÇÒ×î¶àÆ¥Åä m ´Î¡£ "o{1,3}" ½«Æ¥Åä "fooooood" ÖеÄÇ°Èý¸ö o¡£'o{0,1}' µÈ¼ÛÓÚ 'o?'¡£Çë×¢ÒâÔÚ¶ººÅºÍÁ½¸öÊýÖ®¼ä²»ÄÜÓпոñ¡£

µ±¸Ã×Ö·û½ô¸úÔÚÈκÎÒ»¸öÆäËûÏÞÖÆ·û (*, +, ?, {n}, {n,}, {n,m}) ºóÃæʱ£¬Æ¥ÅäģʽÊÇ·ÇÌ°À·µÄ¡£·ÇÌ°À·Ä£Ê½¾¡¿ÉÄÜÉÙµÄÆ¥ÅäËùËÑË÷µÄ×Ö·û´®£¬¶øĬÈϵÄÌ°À·Ä£Ê½Ôò¾¡¿ÉÄܶàµÄÆ¥ÅäËùËÑË÷µÄ×Ö·û´®¡£ÀýÈ磬¶ÔÓÚ×Ö·û´® "oooo"£¬'o+?' ½«Æ¥Åäµ¥¸ö "o"£¬¶ø 'o+' ½«Æ¥ÅäËùÓÐ 'o'¡£

Æ¥Åä³ý "\n" Ö®ÍâµÄÈκε¥¸ö×Ö·û¡£ÒªÆ¥Åä°üÀ¨ '\n' ÔÚÄÚµÄÈκÎ×Ö·û£¬ÇëʹÓÃÏó '[.\n]' µÄģʽ¡£
(pattern) 
Æ¥Åäpattern ²¢»ñÈ¡ÕâһƥÅä¡£Ëù»ñÈ¡µÄÆ¥Åä¿ÉÒÔ´Ó²úÉúµÄ Matches ¼¯ºÏµÃµ½£¬ÔÚVBScript ÖÐʹÓà SubMatches ¼¯ºÏ£¬ÔÚVisual Basic Scripting Edition ÖÐÔòʹÓà $0…$9 ÊôÐÔ¡£ÒªÆ¥ÅäÔ²À¨ºÅ×Ö·û£¬ÇëʹÓà '\(' »ò '\)'¡£
(?:pattern) 
Æ¥Åä pattern µ«²»»ñÈ¡Æ¥Åä½á¹û£¬Ò²¾ÍÊÇ˵ÕâÊÇÒ»¸ö·Ç»ñÈ¡Æ¥Å䣬²»½øÐд洢¹©ÒÔºóʹÓá£ÕâÔÚʹÓà "»ò" ×Ö·û (|) À´×éºÏÒ»¸öģʽµÄ¸÷¸ö²¿·ÖÊǺÜÓÐÓá£ÀýÈ磬 'industr(?:y|ies) ¾ÍÊÇÒ»¸ö±


Ïà¹ØÎĵµ£º

VirtualBox Windows ºÍLinux ¹²ÏíÎļþ

1.Windows Ï´ò¿ªvirtualBox £¬Æô¶¯ÐéÄâ»ú¡£ÔÚÐéÄâ»ú´°¿ÚÉÏÑ¡Ôñ É豸 ->·ÖÅäÊý¾Ý¿Õ¼ä
2.Ñ¡ÔñWindowsÏÂÄãÏëÒª¹²ÏíµÄÎļþ¼Ð ÈçH:share , Ìí¼Ó¹Ì¶¨Êý¾Ý·ÖÅä¿Õ¼ä ,·ÖÅä¸÷Ãû×ÖÈ磺VMshare
3.ÔÚÐéÄâ»úlinuxÖն˹ÒÆð¸Õ·ÖÅäµÄÊý¾Ý¿Õ¼ä£¬
   sudo monut -t vboxsf VMshare /home/plus/share #ÆäÖÐ/home/plus/shareÊÇ ......

Linux¹Ø»úÃüÁîÏê½â

ÔÚlinuxÏÂһЩ³£ÓõĹػú/ÖØÆôÃüÁîÓÐshutdown¡¢halt¡¢reboot¡¢¼°init£¬ËüÃǶ¼
¿ÉÒÔ´ïµ½ÖØÆôϵͳµÄÄ¿µÄ£¬µ«Ã¿¸öÃüÁîµÄÄÚ²¿¹¤×÷¹ý³ÌÊDz»Í¬µÄ£¬Í¨¹ý±¾ÎĵĽéÉÜ£¬Ï£
ÍûÄã¿ÉÒÔ¸ü¼ÓÁé»îµÄÔËÓø÷ÖֹػúÃüÁî¡£
¡¡¡¡ 1.shutdown
   shutdownÃüÁȫµØ½«ÏµÍ³¹Ø»ú¡£ ÓÐЩÓû§»áʹÓÃÖ±½Ó¶ÏµôµçÔ´µÄ·½ ......

C++ Ö®Boostѧϰ±Ê¼Ç Linuxϱà³Ì

C++ѧϰ±Ê¼Ç--Linuxϱà³Ì
Ò»¡¢¹ØÓÚBoostµÄʹÓ㬼¸ÖÖ³£Ó÷½·¨£¬Ö»ÊÇ×Ô¼º¹¤×÷¡¢Ñ§Ï°ÖÐ×ܽáµÄ£¬ÓÐЩ·½·¨µÄÈ·ÓÐЩ·±Ëö£¬ÄÜÂú×ãÐèÇó£¬Ó¦¸Ã»¹Óиü¼Ó¼òµ¥¿ì½ÝµÄ·½Ê½£¬´ý¸Ä½ø¡£
1¡¢ÅжÏ×Ö·û´®ÓëÕýÔò±í´ïʽÊÇ·ñÆ¥Å䣨ÍêÈ«Æ¥Å䣩
bool IsMatch(const char* data,const char * regx)
{
    boost::regex express ......

linux»·¾³Ï°²×°oracle 11g database·½·¨Ö¸µ¼(Èý)

±¸×¢£º¾­¹ýÇ°ÆÚµÄlinuxϵͳ»·¾³µÄÅäÖôÍê³É£¬ÏÂÃæ¾Í¿ªÊ¼°²×°oracleÊý¾Ý¿â¡£oralceÊý¾Ý´ó¼ÒÈ¥oracle¹Ù·½ÍøÕ¾ÉÏÏÂÔØlinux»·¾³Ïµİ汾¡£ºÜÒź¶½ØͼÉÏ´«²»ÁË¡£
 
Èý£®Oracle database°²×°¾ßÌå°²×°²½Öè
 
<1>´´½¨°²×°oracleĿ¼¼°Ö÷Êôµ÷Õû
[root@mylinux oracle]# mv database/ /u01
[root@mylinux u ......

Linux ¼¯Èº´óÈ«

http://www.ibm.com/developerworks/cn/linux/cluster/lw-clustering.html
×¢£º¿´ÍêÏÂÃæµÄ½éÉܺó¿ÉÒÔ¿´Ò»ÏÂÕâ¸öÁ´½ÓµÄʵÀý£ºhttp://blog.csdn.net/chinalinuxzend/archive/2007/10/25/1842581.aspx
¼¶±ð£º ³õ¼¶
Rawn Shah, LinuxWorld רÀ¸×÷¼Ò
2000 Äê 5 ÔÂ 01 ÈÕ
Rawn Shah ×÷Ϊר¼Ò£¬ÔÚ Linux ÏÖÓеĿª·ÅÔ´ÂëºÍ·â±Õ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ