代码搜索:bash
找到约 5,321 项符合「bash」的源代码
代码结果 5,321
www.eeworm.com/read/296774/7113958
sh m88k-move.sh
#!/bin/sh
#
# If your shell doesn't support functions (true for some BSD users),
# you might try using GNU's bash.
#
#ident "@(#) m88k-move.sh 1-Sep-92"
#
# This file provided by Data General, Februar
www.eeworm.com/read/458682/7291379
sh background-loop.sh
#!/bin/bash
# background-loop.sh
for i in 1 2 3 4 5 6 7 8 9 10 # First loop.
do
echo -n "$i "
done & # Run this loop in background.
# Will sometimes execute after second loop.
ec
www.eeworm.com/read/458682/7291424
sh twodim.sh
#!/bin/bash
# twodim.sh: Simulating a two-dimensional array.
# A one-dimensional array consists of a single row.
# A two-dimensional array stores rows sequentially.
Rows=5
Columns=5
# 5 X 5 Array.
www.eeworm.com/read/458682/7291456
sh pid-identifier.sh
#!/bin/bash
# pid-identifier.sh:
# Gives complete path name to process associated with pid.
ARGNO=1 # Number of arguments the script expects.
E_WRONGARGS=65
E_BADPID=66
E_NOSUCHPROCESS=67
E_NOPERMIS
www.eeworm.com/read/458682/7291457
sh du.sh
#!/bin/bash
# Du.sh: DOS to UNIX text file converter.
E_WRONGARGS=65
if [ -z "$1" ]
then
echo "Usage: `basename $0` filename-to-convert"
exit $E_WRONGARGS
fi
NEWFILENAME=$1.unx
CR='\015' # Ca
www.eeworm.com/read/458682/7291504
sh ex37.sh
#!/bin/bash
dir1=/usr/local
dir2=/var/spool
pushd $dir1
# Will do an automatic 'dirs' (list directory stack to stdout).
echo "Now in directory `pwd`." # Uses back-quoted 'pwd'.
# Now, do some stuff
www.eeworm.com/read/458682/7291696
sh ex39.sh
#!/bin/bash
ROOT_UID=0 # Only users with $UID 0 have root privileges.
E_NOTROOT=65
E_NOPARAMS=66
if [ "$UID" -ne "$ROOT_UID" ]
then
echo "Must be root to run this script."
# "Run along kid, it
www.eeworm.com/read/458682/7291712
sh rot13a.sh
#!/bin/bash
# rot13a.sh: Same as "rot13.sh" script, but writes output to "secure" file.
# Usage: ./rot13a.sh filename
# or ./rot13a.sh <filename
# or ./rot13a.sh and supply keyboard input
www.eeworm.com/read/448648/7528421
init bgpd.init
#!/bin/bash
#
# chkconfig: - 16 84
# description: A BGPv4, BGPv4+, BGPv4- routing engine for use with Zebra
#
# processname: bgpd
# config: /etc/bgpd.conf
# source function library
. /etc/rc.d/init.d
www.eeworm.com/read/438832/7725391
sh realname.sh
#!/bin/bash
# realname.sh
#
# 依靠username, 从/etc/passwd中获得"真名".
ARGCOUNT=1 # 需要一个参数.
E_WRONGARGS=65
file=/etc/passwd
pattern=$1
if [ $# -ne "$ARGCOUNT" ]
then
echo "Usage: `basename $0` U