代码搜索:bash
找到约 5,321 项符合「bash」的源代码
代码结果 5,321
www.eeworm.com/read/356335/10230847
run-testsuite
#!/bin/bash
bad=
# If you encounter the following problem with Valgrind like I did:
# https://bugzilla.redhat.com/show_bug.cgi?id=455644
# you can pass the environment variable NO_VALGRIND=1 to
www.eeworm.com/read/281232/10255130
sms2mail
#!/bin/bash
SCMXX=/usr/bin/scmxx
MAILPROG=/usr/bin/mail
MAILPARAMS="-s 'SMS mail' $1"
LOGFILE=~/.scmxx-errors
if [ $# -eq 0 ]; then
echo "Syntax: $0 ";
exit 1;
fi
exec $SCMXX
www.eeworm.com/read/281104/10263490
sms2unicode
#!/bin/bash
# This script converts a received sms file into a pure unicode text file.
if [ $# -ne 1 ]; then
echo "Usage: sms2unicode filename"
exit 1
fi
if grep "Alphabet:.*UCS" $1 >/dev/null;
www.eeworm.com/read/279175/10457811
init ripd.init
#!/bin/bash
#
# chkconfig: - 16 84
# description: A RIP routing engine for use with Zebra
#
# processname: ripd
# config: /etc/ripd.conf
# source function library
. /etc/rc.d/init.d/functions
RETVAL
www.eeworm.com/read/422517/10632532
install
You don't need to have the Flex and Bison tools installed, because all the work they do
it's done by myself.
So all you have to do is to run the compile bash script, hopefully you will have it instal
www.eeworm.com/read/469349/6973357
sh newuser.sh
#!/bin/bash
addgrp(){
echo `date` : add new group >> $LOGFILE
newgrps=`awk '{print $2}' $USRFILE | sed 's/,/\n/g' | sort | uniq`
for f in $newgrps
do
`groupadd $f 2>> $LOGFILE `
done
return 0
www.eeworm.com/read/463439/7109464
mpdiag
#!/bin/bash
in=${3:-data.txt}
out=${4:-diag.mp}
gawk -v figno=$1 -v params="$2" '
BEGIN {
n = -1; # split the parameters
cnt = split(params, vec, "|") -2;
for (i in vec)
www.eeworm.com/read/458682/7291314
sh date-calc.sh
#!/bin/bash
# date-calc.sh
# Author: Nathan Coulter
# Used in ABS Guide with permission (thanks!).
MPHR=60 # Minutes per hour.
HPD=24 # Hours per day.
diff () {
printf '%s' $(( $(date
www.eeworm.com/read/458682/7291315
sh and-list2.sh
#!/bin/bash
ARGS=1 # Number of arguments expected.
E_BADARGS=65 # Exit value if incorrect number of args passed.
test $# -ne $ARGS && \
echo "Usage: `basename $0` $ARGS argument(s)" && exit
www.eeworm.com/read/458682/7291344
sh protect_literal.sh
#! /bin/bash
# protect_literal.sh
# set -vx
: