代码搜索:bash

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

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

sh file-comparison.sh

#!/bin/bash ARGS=2 # Two args to script expected. E_BADARGS=65 E_UNREADABLE=66 if [ $# -ne "$ARGS" ] then echo "Usage: `basename $0` file1 file2" exit $E_BADARGS fi if [[ ! -r "$1" || ! -r "$2
www.eeworm.com/read/458682/7291473

sh ex79.sh

#!/bin/bash # Cards: # Deals four random hands from a deck of cards. UNPICKED=0 PICKED=1 DUPE_CARD=99 LOWER_LIMIT=0 UPPER_LIMIT=51 CARDS_IN_SUIT=13 CARDS=52 declare -a Deck declare -a Suits decla
www.eeworm.com/read/458682/7291761

sh strip-comments.sh

#!/bin/bash # strip-comment.sh: Strips out the comments (/* COMMENT */) in a C program. E_NOARGS=0 E_ARGERROR=66 E_WRONG_FILE_TYPE=67 if [ $# -eq "$E_NOARGS" ] then echo "Usage: `basename $0` C-pr
www.eeworm.com/read/458682/7291773

sh ex8.sh

#!/bin/bash # Reading lines in /etc/fstab. File=/etc/fstab { read line1 read line2 } < $File echo "First line in $File is:" echo "$line1" echo echo "Second line in $File is:" echo "$line2" exit 0
www.eeworm.com/read/448423/7533719

sh setenv.sh

#!/bin/bash export EZXDIR=/opt/dev-ezx-0.2.0/ezx export QTDIR=/opt/dev-ezx-0.2.0/qt-2.3.6 export QMAKESPEC=$QTDIR/mkspecs/qws/linux-ipaq-g++ #for leprechaun's toolchain user #export TOOLCHAIN_DIR=/o
www.eeworm.com/read/444452/7612563

sh build_pc.sh

#!/bin/bash OPENCV=/cbcl/cbcl01/sharat/opencv LIBTIFF=/cbcl/cbcl01/sharat/libtiff PKG_CONFIG_PATH=$OPENCV/lib/pkgconfig PATH=$PATH:$OPENCV/bin LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OPENCV/LIB export
www.eeworm.com/read/438832/7725302

sh dd-keypress.sh

#!/bin/bash # dd-keypress.sh: 记录按键, 不需要按回车. keypresses=4 # 记录按键的个数. old_tty_setting=$(stty -g) # 保存旧的终端设置. echo "Press $keypresses keys." stty -icanon -echo
www.eeworm.com/read/438832/7725425

sh subshell-pitfalls.sh

#!/bin/bash # 子shell中的变量缺陷. outer_variable=outer echo echo "outer_variable = $outer_variable" echo ( # 开始子shell echo "outer_variable inside subshell = $outer_variable" inner_variable=inner # Set
www.eeworm.com/read/438832/7725846

sh ex64.sh

#!/bin/bash # "与列表" if [ ! -z "$1" ] && echo "Argument #1 = $1" && [ ! -z "$2" ] && echo "Argument #2 = $2" then echo "At least 2 arguments passed to script." # 所有连接起来的命令都返回true. else echo "Le
www.eeworm.com/read/438832/7725847

sh connect-stat.sh

#!/bin/bash PROCNAME=pppd # ppp守护进程 PROCFILENAME=status # 在这里寻找信息. NOTCONNECTED=65 INTERVAL=2 # 每2秒刷新一次. pidno=$( ps ax | grep -v "ps ax" | grep -v grep | grep $PROCNAME | awk '{