代码搜索:bash

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

代码结果 5,321
www.eeworm.com/read/339483/12230571

sh match-string.sh

#!/bin/bash # match-string.sh: simple string matching match_string () { MATCH=0 NOMATCH=90 PARAMS=2 # Function requires 2 arguments. BAD_PARAMS=91 [ $# -eq $PARAMS ] || return $BAD_PAR
www.eeworm.com/read/339483/12230665

sh logevents.sh

#!/bin/bash # logevents.sh, by Stephane Chazelas. # Event logging to a file. # Must be run as root (for write access in /var/log). ROOT_UID=0 # Only users with $UID 0 have root privileges. E_NOT
www.eeworm.com/read/339483/12230743

sh online.sh

#!/bin/bash # logon.sh: A quick 'n dirty script to check whether you are on-line yet. umask 177 # Make sure temp files are not world readable. TRUE=1 LOGFILE=/var/log/messages # Note that $LOGFIL
www.eeworm.com/read/339483/12230760

sh ex47.sh

#!/bin/bash # printf demo PI=3.14159265358979 DecimalConstant=31373 Message1="Greetings," Message2="Earthling." echo printf "Pi to 2 decimal places = %1.2f" $PI echo printf "Pi to 9 decimal places
www.eeworm.com/read/339483/12230769

sh ex36.sh

#!/bin/bash # "Reading" variables. echo -n "Enter the value of variable 'var1': " # The -n option to echo suppresses newline. read var1 # Note no '$' in front of var1, since it is being set. echo "
www.eeworm.com/read/339483/12230806

sh stupid-script-tricks.sh

#!/bin/bash # stupid-script-tricks.sh: Don't try this at home, folks. # From "Stupid Script Tricks," Volume I. dangerous_variable=`cat /boot/vmlinuz` # The compressed Linux kernel itself. echo "s
www.eeworm.com/read/339483/12230841

sh max.sh

#!/bin/bash # max.sh: Maximum of two integers. E_PARAM_ERR=-198 # If less than 2 params passed to function. EQUAL=-199 # Return value if both params equal. # Error values out of range of
www.eeworm.com/read/339483/12231392

sh ex11.sh

#!/bin/bash echo if test -z "$1" then echo "No command-line arguments." else echo "First command-line argument is $1." fi echo if /usr/bin/test -z "$1" # Same result as "test" builtin". t
www.eeworm.com/read/339483/12231485

sh lookup.sh

#!/bin/bash # lookup: Does a dictionary lookup on each word in a data file. file=words.data # Data file from which to read words to test. echo while [ "$word" != end ] # Last word in data file. d
www.eeworm.com/read/339483/12231486

sh upperconv.sh

#!/bin/bash # upperconv.sh # Converts a specified input file to uppercase. E_FILE_ACCESS=70 E_WRONG_ARGS=71 if [ ! -r "$1" ] # Is specified input file readable? then echo "Can't read from inpu