摘要: Shell中通常将EOF与 << 结合使用,表示后续的输入作为子命令或子Shell的输入,直到遇到EOF为止,再返回到主调Shell。可以把EOF替换成其他东西意思是把内容当作标准输入传给程序回顾一下< <的用法。当s h e l l看到< <的时候,它就会知道下一个词是一个分界符。在该分界符以后的内容都被当作输入,直到s h e l l又看到该分界符(位于单独的一行)。这个分界符可以是你所定义的任何字符串。方法1.需要,自动登录mysql(root:root,passwd:123456),查询test库,test1表里的user=aa的记录.#!/bin/ 阅读全文
posted @ 2012-07-31 22:13 鸡蛋的冬天 阅读(497) 评论(0) 推荐(0)
摘要: linux中shell变量$#,$@,$0,$1,$2的含义解释(jieshi):变量说明(shuoming):$$Shell本身(benshen)的PID(ProcessID)$!Shell最后(zuihou)运 行(running)的后台Process的PID$?最后(zuihou)运 行(running)的命令的结束(jieshu)代码(返回(fanhui)值)$-使用(shiyong)Set命令设定的Flag一览$*所有(suoyou)参数列表。如"$*"用「"」括起来的情况(qingkuang)、以"$1 $2 … $n"的形式(xi 阅读全文
posted @ 2012-07-31 22:09 鸡蛋的冬天 阅读(238) 评论(0) 推荐(0)
摘要: 国外http://lwn.net/http://www.tldp.org/https://rhn.redhat.comhttp://www.justlinux.com/http://www.linuxtoday.com/http://www.linuxquestions.org/http://www.fokus.gmd.de/linux/http://www.linux-tutorial.info/http://public.www.planetmirror.com/http://www.freebsdforums.org/forums/http://www.netfilter.org/doc 阅读全文
posted @ 2012-07-31 21:57 鸡蛋的冬天 阅读(489) 评论(0) 推荐(0)