代码搜索:bash
找到约 5,321 项符合「bash」的源代码
代码结果 5,321
www.eeworm.com/read/156228/11817358
enterexamdata
#!/bin/bash
sqlite3 examdatabase < examScript
sqlite3 examdatabase < examLOG
sqlite3 examdatabase2 < examScript
sqlite3 examdatabase2 < examLOG
sqlite3 examdatabase "insert into exam (ln,fn,exam,sc
www.eeworm.com/read/153733/12010568
makefile
.SILENT:
.SUFFIXES:
.SUFFIXES: .o .c .S
SHELL=/bin/bash
# Make pointers 32 bit as we're generating 32 bit ELF and don't need 64 bit
# pointers anyway.
ADDR = FFFFFFFFBFC00000
XDEV ?= mips64-elf
www.eeworm.com/read/253789/12200250
sh string.functions.sh
#!/bin/bash
# function strcat
# Usage: strcat s1 s2
function strcat ()
{
local s1_val s2_val
s1_val=${!1} # indirect variable expansion
s2_val=${!2}
www.eeworm.com/read/253789/12200263
sh datediff.sh
#!/bin/bash
# Usage: ./days-diff.sh [M]M/[D]D/YYYY [M]M/[D]D/YYYY
ARGS=2 # Two command line parameters expected.
E_PARAM_ERR=65 # Param error.
REFYR=1600 # Referen
www.eeworm.com/read/339483/12230522
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/339483/12230637
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/339483/12230738
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_NOPERMISSI
www.eeworm.com/read/339483/12230741
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/339483/12230854
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/339483/12231546
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