linux shell ×Ö·û´®½ØÈ¡×ܽá
linuxÖжÔ×Ö·û´®µÄ´¦Àí£º
1.×Ö·û´®·Ö¸îÀýÈç AAAAA-BBBBBB °´-·Ö¸îȥǰºóÁ½²¿·Ö
cut £º
[rich@localhost ~]$ str=AAAAA-BBBBBB
[rich@localhost ~]$ echo $str | cut -d "-" -f 1
AAAAA
[rich@localhost ~]$ echo $str | cut -d "-" -f 2
BBBBBB
½âÊÍ£ºA £ü B ½«AÃüÁîµÄÊä³ö ×÷ΪBÃüÁîµÄÊäÈë
cut
-d £º·Ö¸ô·û
-f £º field ·Ö¸îºóµÄÊý×éË÷Òý Ö»²»¹ýÊÇ´Ó1¿ªÊ¼
Èç¹û²»´æÔÚ·Ö¸î·ûÔò·µ»ØÈ«²¿£º
[rich@localhost ~]$ echo $str | cut -d "c" -f 1
AAAAA-BBBBBB
expr £¦£¦ cut£º
È¡“-”µÄË÷Òý
[rich@localhost ~]$ index=`expr index "${str}" "-"`
[rich@localhost ~]$ echo $str | cut -c`expr "${index}" + 1`-
BBBBBB
[rich@localhost ~]$ echo $str | cut -c1-`expr ${index} - 1`
AAAAA
cut
-c ½ØÈ¡×Ö·û´® Ë÷Òý´Ó1¿ªÊ¼
-cA- Aµ½Ä©Î²
-cA AλÖÃ
-c A-B Ë÷ÒýA-B
-c-A ½ØÈ¡Ç°A¸ö×Ö·û
substr£º
[rich@localhost ~]$ index=`expr ${index} - 1`
[rich@localhost ~]$ echo `expr substr "${str}" 1 ${index}`
AAAAA
substr str A B
´ÓË÷ÒýA¿ªÊ¼½ØÈ¡B³¤¶ÈµÄ×Ö·û´®
Ïà¹ØÎĵµ£º
Service Discovery Protocol(SDP)ÌṩһÖÖÄÜÁ¦£¬ÈÃÓ¦ÓóÌÐòÓз½·¨·¢ÏÖÄÄÖÖ·þÎñ¿ÉÓÃÒÔ¼°ÕâÖÖ·þÎñµÄÌØÐÔ¡£
·þÎñ·¢ÏÖÐÒé(SDP»òBluetooth SDP)ÔÚÀ¶ÑÀÐÒéÕ»ÖжÔÀ¶ÑÀ»·¾³ÖеÄÓ¦ÓóÌÐòÓÐÌØÊâµÄº¬Ò⣬·¢ÏÖÄĸö·þÎñÊÇ¿ÉÓõĺÍÈ·¶¨ÕâЩ¿ÉÓ÷þÎñµÄÌØÕ÷¡£SDP¶¨ÒåÁËbluetooth client·¢ÏÖ¿ÉÓÃbluetooth server·þÎñºÍËüÃǵÄÌØÕ÷µÄ·½·¨¡£ ......
LinuxÖУ¬cron±»ÓÃÀ´µ÷¶ÈÖØ¸´µÄÈÎÎñ£¬linux atÃüÁî±»ÓÃÀ´ÔÚÖ¸¶¨Ê±¼äÄÚµ÷¶ÈÒ»´ÎÐÔµÄÈÎÎñ¡£
ҪʹÓÃlinux atÃüÁÄã±ØÐë°²×°ÁËat RPMÈí¼þ°ü£¬²¢ÇÒ atd·þÎñ±ØÐëÔÚÔËÐС£
¿ÉÒÔʹÓÃÒ»ÏÂÃüÁîÆô¶¯atd·þÎñ£º
[root@sso_4 sbin]# /sbin/service atd start
ÒªÅж¨¸ÃÈí¼þ°üÊÇ·ñ±»°²×° ......
1¡¢MVCµÄ¸÷¸ö²¿·Ö¶¼ÓÐÄÇЩ¼¼ÊõÀ´ÊµÏÖ?ÈçºÎʵÏÖ?
´ð£ºMVCÊÇModel£View£ControllerµÄ¼òд¡£"Model" ´ú±íµÄÊÇÓ¦ÓõÄÒµÎñÂß¼£¨Í¨¹ýJavaBean£¬EJB×é¼þʵÏÖ£©£¬ "View" ÊÇÓ¦ÓõıíÊ¾Ãæ£¨ÓÉJSPÒ³Ãæ²úÉú£©£¬"Controller" ÊÇÌṩӦÓõĴ¦Àí¹ý³Ì¿ØÖÆ£¨Ò»°ãÊÇÒ»¸öServlet£©£¬Í¨¹ýÕâÖÖÉè¼ÆÄ£ÐͰÑÓ¦ÓÃÂß¼£¬´¦Àí¹ý³ÌºÍÏÔʾÂß¼·Ö³É ......
°æÈ¨ÉùÃ÷
±¾ÎÄ×÷ÕßÊÇһλ×ÔÓÉÈí¼þ°®ºÃÕߣ¬ËùÒÔ±¾ÎÄËäÈ»²»ÊÇÈí¼þ£¬µ«ÊDZ¾×Å GPL µÄ¾«Éñ·¢²¼¡£ÈκÎÈ˶¼¿ÉÒÔ×ÔÓÉʹÓá¢×ªÔØ¡¢¸´ÖƺÍÔÙ·Ö·¢£¬µ«±ØÐë±£Áô×÷ÕßÊðÃû£¬Ò಻µÃ¶ÔÉùÃ÷ÖеÄÈκÎÌõ¿î×÷ÈκÎÐÎʽµÄÐ޸ģ¬Ò²²»µÃ¸½¼ÓÈÎºÎÆäËüÌõ¼þ¡£Äú¿ÉÒÔ×ÔÓÉÁ´½Ó¡¢ÏÂÔØ¡¢´«²¥´ËÎĵµ£¬µ«Ç°ÌáÊDZØÐ뱣֤ȫÎÄÍêÕû×ªÔØ£¬°üÀ¨ÍêÕûµÄ°æÈ¨ÐÅÏ¢ºÍ× ......
ÒÔÇ°Ôø¾¿´¹ýÕâÑùµÄһƪÎÄÕ£¬´ó¸ÅÊÇÕâÑùµÄ:
ѧϰLinuxÒª·ÖÈý¸ö½×¶ÎÀ´Ñ§£º
1£©Ê¹ÓÃLinux£»
2)LinuxµÄ³ÌÐòÉè¼Æ£»
3£©LinuxµÄÄں˼°±à³Ì¡£
´ÓÏÖÔÚ¿ªÊ¼ÒªÑ§Ï°LinuxÁË£¬Ö÷ÒªÊÇÏÈ´ÓʹÓÃLinux¿ªÊ¼ÁË£¬Ñ¡ÓõÄLinuxÊÇRed Hat 5. ......