代码搜索:bash

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

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

sh echo-params.sh

#!/bin/bash # echo-params.sh # Call this script with a few command line parameters. # For example: # sh echo-params.sh first second third fourth fifth params=$# # Number of command-
www.eeworm.com/read/458682/7291418

sh ref-params.sh

#!/bin/bash # ref-params.sh: Dereferencing a parameter passed to a function. # (Complex Example) ITERATIONS=3 # How many times to get input. icount=1 my_read () { # Called with my
www.eeworm.com/read/458682/7291420

sh ex28.sh

#!/bin/bash LIMIT=19 # Upper limit echo echo "Printing Numbers 1 through 20 (but not 3 and 11)." a=0 while [ $a -le "$LIMIT" ] do a=$(($a+1)) if [ "$a" -eq 3 ] || [ "$a" -eq 11 ] # Excludes 3
www.eeworm.com/read/458682/7291438

sh dereference.sh

#!/bin/bash # dereference.sh # Dereferencing parameter passed to a function. # Script by Bruce W. Clare. dereference () { y=\$"$1" # Name of variable. echo $y # $Junk x=`eval "ex
www.eeworm.com/read/458682/7291478

sh letter-count.sh

#!/bin/bash # letter-count.sh: Counting letter occurrences in a text file. # Written by Stefano Palmeri. # Used in ABS Guide with permission. # Slightly modified by document author. MINARGS=2
www.eeworm.com/read/458682/7291509

sh script-detector.sh

#!/bin/bash # script-detector.sh: Detects scripts within a directory. TESTCHARS=2 # Test first 2 characters. SHABANG='#!' # Scripts begin with a "sha-bang." for file in * # Traverse all the fi
www.eeworm.com/read/458682/7291510

lib hash.lib

# Hash: # Hash function library # Author: Mariusz Gniazdowski <mgniazd-at-gmail.com> # Date: 2005-04-07 # Functions making emulating hashes in Bash a little less painful. # Limitations: #
www.eeworm.com/read/458682/7291518

sh ex58.sh

#!/bin/bash # Backs up all files in current directory modified within last 24 hours #+ in a "tarball" (tarred and gzipped file). BACKUPFILE=backup-$(date +%m-%d-%Y) # Embeds date in
www.eeworm.com/read/458682/7291645

sh ex10.sh

#!/bin/bash # Tip: # If you're unsure of how a certain condition would evaluate, #+ test it in an if-test. echo echo "Testing \"0\"" if [ 0 ] # zero then echo "0 is true." else echo "0 i
www.eeworm.com/read/458682/7291665

sh ex62.sh

#!/bin/bash # Global and local variables inside a function. func () { local loc_var=23 # Declared as local variable. echo # Uses the 'local' builtin. echo "\"loc_var\" i