代码搜索:bash

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

代码结果 5,321
www.eeworm.com/read/458682/7291464

sh hash-example.sh

#!/bin/bash # hash-example.sh: Colorizing text. # Author: Mariusz Gniazdowski <mgniazd-at-gmail.com> . Hash.lib # Load the library of functions. hash_set colors red "\033[0;31m"
www.eeworm.com/read/458682/7291500

sh keypress.sh

#!/bin/bash # keypress.sh: Detect a user keypress ("hot keys"). echo old_tty_settings=$(stty -g) # Save old settings (why?). stty -icanon Keypress=$(head -c1) # or $(dd bs=1 count=1 2> /d
www.eeworm.com/read/458682/7291710

sh ex49.sh

#!/bin/bash # Changes a file to all uppercase. E_BADARGS=65 if [ -z "$1" ] # Standard check for command line arg. then echo "Usage: `basename $0` filename" exit $E_BADARGS fi tr a-z A-Z
www.eeworm.com/read/458682/7291754

sh m4.sh

#!/bin/bash # m4.sh: Using the m4 macro processor # Strings string=abcdA01 echo "len($string)" | m4 # 7 echo "substr($string,4)" | m4 # A01 echo "re
www.eeworm.com/read/438832/7725275

sh ex32.sh

#!/bin/bash PS3='Choose your favorite vegetable: ' echo choice_of() { select vegetable # [in list]被忽略, 所以'select'使用传递给函数的参数. do echo echo "Your favorite veggie is $vegetable." echo "Yuck!"
www.eeworm.com/read/438832/7725283

sh ex46.sh

#!/bin/bash echo let a=11 # 与 'a=11' 相同 let a=a+5 # 等价于 let "a = a + 5" # (双引号和空格是这句话更具可读性.) echo "11 + 5 = $a" # 16 let "a
www.eeworm.com/read/438832/7725414

sh hash-example.sh

#!/bin/bash # hash-example.sh: Colorizing text. # Author: Mariusz Gniazdowski <mgniazd-at-gmail.com> . Hash.lib # Load the library of functions. hash_set colors red "\033[0;31m"
www.eeworm.com/read/437877/7740603

default domap.unix.default

#!/bin/bash # Copyright(C) eyBuild Group, 2005, 2006. All Rights Reserved. # # modification history # -------------------- # 01c, 2006-5-30 newzy add customize rule description # 01b, 2006-3-23 newz
www.eeworm.com/read/332234/12772074

sh ping.sh

#!/bin/bash LOGDIR=/var/log/netlog While : Do DATE = 'date –d today + %y%m%d ' TIME = 'date -d today +%T ' Echo "$TIME || 'ping $1 -c 1 -w 1 | sed -n '2p' | awk '{if($6 ==
www.eeworm.com/read/332234/12772099

sh reset_right.sh

#!/bin/bash ###判断是否带有参数 if [ '$1'==']; then echo –e '\33[om reboot.sh filename \n filename if a file which cantain thi ip list you want to reboot .\n]'; exit; fi ###显示提示信息并读取passwd