[i=s] ±¾Ìû×îºóÓÉ fztcjjl ÓÚ 2012-4-5 00:35 ±à¼ [/i]
C++½Ì³ÌÍø(www.cppcourse.com)ÍƳöShell±à³ÌÈëÃÅÊÓƵ£¬»¶Ó¹ã´ó»¥ÁªÍøÅóÓѹâÁÙ¡£Èç¹ûÐèÒª¸ü¸ßÇåµÄÊÓƵ£¬Çëµ½C++½Ì³ÌÍøÏÂÔØ¡£
¸ÃÊÓƵ½Ì³Ì½²½âLinuxµ×ϵÄShell±à³Ì£¬ÓÃShell½Å±¾ÊµÏÖÒ»¸ö¼òµ¥µÄ¶íÂÞ˹·½¿é³ÌÐò¡£
Shell±à³Ì»ù´¡
±¾½Ú¿ÎµÄÖ÷ÒªÄÚÈÝÓУº
ʲôÊÇShell³ÌÐò
±¾µØ±äÁ¿
»·¾³±äÁ¿
λÖòÎÁ¿
Êý×é
ÔÚÏß²¥·ÅµØÖ·£ºhttp://www.cppcourse.com/shell_bian_cheng_ji_chu.html
ÊäÈëÊä³ö
±¾½Ú¿ÎµÄÖ÷ÒªÄÚÈÝÓУº
read
echo
echoÊä³öÑÕÉ«Óë¹â±ê¶¨Î»
ÔÚÏß²¥·ÅµØÖ·£ºhttp://www.cppcourse.com/shell_input_output.html
ËãÊõÀ©Õ¹
±¾½Ú¿ÎµÄÖ÷ÒªÄÚÈÝÓУº
µ¥ÒýºÅ¡¢Ë«ÒýºÅ¡¢·´ÒýºÅÇø±ð
ÃüÁîÌæ»»
ËãÊõÀ©Õ¹
ÔÚÏß²¥·ÅµØÖ·£ºhttp://www.cppcourse.com/shell_suan_su_kuo_zhan.html
Ìõ¼þ²âÊÔ
±¾½Ú¿ÎµÄÖ÷ÒªÄÚÈÝÓУº
Ìõ¼þ²âÊÔ
×Ö·û´®²âÊÔ
ÕûÊý²âÊÔ
Âß¼²âÊÔ
Îļþ²âÊÔ
ÔÚÏß²¥·ÅµØÖ·£ºhttp://www.cppcourse.com/shell_tiao_jian_ce_shi.html
Ìõ¼þÓë·ÖÖ§Óï¾ä
±¾½Ú¿ÎµÄÖ÷ÒªÄÚÈÝÓУº
ifÓï¾ä
caseÓï¾ä
ÔÚÏß²¥·ÅµØÖ·£ºhttp://www.cppcourse.com/shell_tiao_jian_yu_fen_zhi.html
Ñ»·Óï¾ä
±¾½Ú¿ÎµÄÖ÷ÒªÄÚÈÝÓУº
forÓï¾ä
whileÓï¾ä
untilÓï¾ä
selectÓë²Ëµ¥
ÔÚÏß²¥·ÅµØÖ·£ºhttp://www.cppcourse.com/shell-xun-huan.html
º¯Êý
±¾½Ú¿ÎµÄÖ÷ÒªÄÚÈÝÓУº
º¯ÊýµÄʹÓÃ
×Ö·û´®²Ù×÷
һЩÄÚÖÃÃüÁexpr,shift,eval,trapµÈ£©
ÔÚÏß²¥·ÅµØÖ·£ºhttp://www.cppcourse.com/shell_function.html
sed
±¾½Ú¿ÎµÄÖ÷ÒªÄÚÈÝÓУº
ʲôÊÇÁ÷±à¼Æ÷sed
sedµØÖ·¶¨Î»·½Ê½
sed±à¼ÃüÁî
ÔÚÏß²¥·ÅµØÖ·£ºhttp://www.cppcourse.com/sed.html
awk
±¾½Ú¿ÎµÄÖ÷ÒªÄÚÈÝÓУº
ʲôÊÇawk
awk¼òµ¥Ó÷¨
awk½Å±¾Óï·¨
awkÖ´Ðйý³Ì
ÔÚÏß²¥·ÅµØÖ·£ºhttp://www.cppcourse.com/awk.html
Shell¶íÂÞ˹·½¿éÉÏ
±¾½Ú¿ÎµÄÖ÷ÒªÄÚÈÝÓУº
»ñÈ¡¼üÅÌ·½Ïò°´¼ü£¨read£©
ÆåÅÌ»æÖÆ£¨echo£©
¶íÂÞ˹·½¿é±íʾ£¨Ò»Î¬Êý×飩
¶íÂÞ˹·½¿éͼÐÎÊä³ö
½ø³ÌÄ£ÐÍ£¨ÏÔʽ½ø³Ì£¬¿ØÖƽø³Ì£©
²¶×½Ðźţ¨trap £©
¶íÂÞ˹·½¿éÔ´Âë·ÖÎö
ÔÚÏß²¥·ÅµØÖ·£ºhttp://www.cppcourse.com/shell_tetris1.html
Shell¶íÂÞ˹·½¿éÏÂ
±¾½Ú¿ÎµÄÖ÷ÒªÄÚÈÝÓУº
»ñÈ¡¼üÅÌ·½Ïò°´¼ü£¨read£©
ÆåÅÌ»æÖÆ£¨echo£©
¶íÂÞ˹·½¿é±íʾ£¨Ò»Î¬Êý×飩
¶íÂÞ˹·½¿éͼÐÎÊä³ö
½ø³ÌÄ£ÐÍ£¨ÏÔʽ½ø³Ì£¬¿ØÖƽø³Ì£©
²¶×½Ðźţ¨trap £©
¶íÂÞ˹·½¿éÔ´Âë·ÖÎö
ÔÚÏß²¥·ÅµØÖ·£ºhttp://www.cppcourse.com/shell_tetris2.html