代码搜索:bash

找到约 5,321 项符合「bash」的源代码

代码结果 5,321
www.eeworm.com/read/438832/7725803

sh isalpha.sh

#!/bin/bash # isalpha.sh: 使用"case"结构来过滤字符串. SUCCESS=0 FAILURE=-1 isalpha () # 检查输入的 *第一个字符* 是不是字母表上的字符. { if [ -z "$1" ] # 没有参数传进来? then return $FAILURE fi case "$1" in [a-zA-Z]*
www.eeworm.com/read/438832/7725845

sh file-integrity.sh

#!/bin/bash # file-integrity.sh: 检查一个给定目录下的文件 # 是否被改动了. E_DIR_NOMATCH=70 E_BAD_DBFILE=71 dbfile=File_record.md5 # 存储记录的文件名(数据库文件). set_up_database () { echo ""$directory"" >
www.eeworm.com/read/438832/7725860

sh ex41.sh

#!/bin/bash # 从/var/log/messagesGenerates的尾部开始 # 产生当前目录下的一个lof文件. # 注意: 如果这个脚本被一个一般用户调用的话, # /var/log/messages 必须是全部可读的. # #root chmod 644 /var/log/messages LINES=5 ( date; uname -a ) >>lo
www.eeworm.com/read/438832/7725894

sh kill-process.sh

#!/bin/bash # kill-process.sh NOPROCESS=2 process=xxxyyyzzz # 使用不存在的进程. # 只不过是为了演示... # ... 并不想在这个脚本中杀掉任何真正的进程. # # 举个例子, 如果你想使用这个脚本来断线Internet, # process=pppd t=`pidof $process` # 取得
www.eeworm.com/read/321496/13403974

stresstest

#! /bin/bash BR=${1:-"br549"} ETH0=${2:-"eth0"} ETH1=${3:-"eth1"} ETH2=${4:-"eth1"} echo "Ethernet Bridge stress test" IP=`/sbin/ifconfig $ETH0 | sed -n -e 's/^.*inet addr:\([0-9][0-9\.]*\).*$/\1/p
www.eeworm.com/read/14278/326260

1-2-8

#!/bin/bash #提示用户输入 echo -n "Pleasw enter number : " read n #读入输入的值放到变量n中 sd=0 rev="" on=$n #将变量n的值保存到变量on中,方便以后用到 echo "You put number is $n" while [ $n -gt 0 ] do sd=$(( $n % 10 )) #求余 n=$(
www.eeworm.com/read/197430/6784266

linux shell

Bourne shell编程入门及脚本测试 Linux宝库 收集整理  作者:linux宝库  时间:2007-02-09  收藏本站 来自:linux宝库 联系:linuxmine#gmail.com 分类:[shell] ·上一篇:Linux程式设计-11.Shell Script(bash)--(1)简介 ·下一篇:TCSHshell编
www.eeworm.com/read/197430/6784283

linux shell

Bourne shell编程入门及脚本测试 Linux宝库 收集整理  作者:linux宝库  时间:2007-02-09  收藏本站 来自:linux宝库 联系:linuxmine#gmail.com 分类:[shell] ·上一篇:Linux程式设计-11.Shell Script(bash)--(1)简介 ·下一篇:TCSHshell编
www.eeworm.com/read/113586/15452713

stresstest

#! /bin/bash BR=${1:-"br549"} ETH0=${2:-"eth0"} ETH1=${3:-"eth1"} ETH2=${4:-"eth1"} echo "Ethernet Bridge stress test" IP=`/sbin/ifconfig $ETH0 | sed -n -e 's/^.*inet addr:\([0-9][0-9\.]*\).*$/\1/p
www.eeworm.com/read/104815/15682691

wheel copi.wheel

#!/bin/bash # $Id: copi.wheel,v 1.2 2001/01/15 22:26:33 tom Exp $ mkstemp size dialog --print-maxsize 2>$tmp_size ROWS="`cut $tmp_size -f1 -d, | cut -f2 -d:`" COLS="`cut $tmp_size -f2 -d,`" rm $tmp_s