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) ¾ÍÊÇÒ»¸ö±
Ïà¹ØÎĵµ£º
1.Windows Ï´ò¿ªvirtualBox £¬Æô¶¯ÐéÄâ»ú¡£ÔÚÐéÄâ»ú´°¿ÚÉÏÑ¡Ôñ É豸 ->·ÖÅäÊý¾Ý¿Õ¼ä
2.Ñ¡ÔñWindowsÏÂÄãÏëÒª¹²ÏíµÄÎļþ¼Ð ÈçH:share , Ìí¼Ó¹Ì¶¨Êý¾Ý·ÖÅä¿Õ¼ä ,·ÖÅä¸÷Ãû×ÖÈ磺VMshare
3.ÔÚÐéÄâ»úlinuxÖն˹ÒÆð¸Õ·ÖÅäµÄÊý¾Ý¿Õ¼ä£¬
sudo monut -t vboxsf VMshare /home/plus/share #ÆäÖÐ/home/plus/shareÊÇ ......
¹¦ÄÜÃèÊö£º
»ñÈ¡»òÕßÉèÖÃÓëij¸öÌ×½Ó×Ö¹ØÁªµÄÑ¡ ÏѡÏî¿ÉÄÜ´æÔÚÓÚ¶à²ãÐÒéÖУ¬ËüÃÇ×Ü»á³öÏÖÔÚ×îÉÏÃæµÄÌ×½Ó×ֲ㡣µ±²Ù×÷Ì×½Ó×ÖÑ¡Ïîʱ£¬Ñ¡ÏîλÓڵIJãºÍÑ¡ÏîµÄÃû³Æ±ØÐë¸ø³ö¡£ÎªÁ˲Ù×÷Ì×½Ó×Ö²ãµÄÑ¡ÏӦ¸Ã ½«²ãµÄÖµÖ¸¶¨ÎªSOL_SOCKET¡£ÎªÁ˲Ù×÷ÆäËü²ãµÄÑ¡Ï¿ØÖÆÑ¡ÏîµÄºÏÊÊÐÒéº ......
Ò». ×¼±¸ÖªÊ¶
1. ISOÎļþ
ÎÒÃÇÆÕ±éʹÓõÄISOÎļþÊÇÖ¸°üº¬×ÅÕû¸öCD-ROM£¨ISO-9660 Îļþϵͳ£©ÄÚÈݵÄ
Ó³Ïó, ÊÇÕû¸öµúƬ´Ó0ÉÈÇøµ½×îºóÒ»¸öÉÈÇøµÄÍêÕû¸´ÖÆ,¾³£±»ÓÃÀ´ÔÚÍøÂçÉÏ´«Êä
¶ÔÓÚISOÎļþÎÒÃÇ¿ÉÒÔ:
1)¿Ì¼µ½¹âÅÌ
2)ÓÃWinRAR,MagicISOµÈÈí¼þÔÚWindowsϲ鿴»òÊÍ·ÅËüµÄÄÚÈÝ
3)ÔÚLinuxϵͳ ......
C++ѧϰ±Ê¼Ç--Linuxϱà³Ì
Ò»¡¢¹ØÓÚBoostµÄʹÓ㬼¸ÖÖ³£Ó÷½·¨£¬Ö»ÊÇ×Ô¼º¹¤×÷¡¢Ñ§Ï°ÖÐ×ܽáµÄ£¬ÓÐЩ·½·¨µÄÈ·ÓÐЩ·±Ëö£¬ÄÜÂú×ãÐèÇó£¬Ó¦¸Ã»¹Óиü¼Ó¼òµ¥¿ì½ÝµÄ·½Ê½£¬´ý¸Ä½ø¡£
1¡¢ÅжÏ×Ö·û´®ÓëÕýÔò±í´ïʽÊÇ·ñÆ¥Å䣨ÍêÈ«Æ¥Å䣩
bool IsMatch(const char* data,const char * regx)
{
boost::regex express ......
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 ÏÖÓеĿª·ÅÔ´ÂëºÍ·â±Õ ......