代码搜索:bash

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

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

sh ex40.sh

#!/bin/bash # ex40.sh (burn-cd.sh) # Script to automate burning a CDR. SPEED=2 # May use higher speed if your hardware supports it. IMAGEFILE=cdimage.iso CONTENTSFILE=contents DEVICE=cdrom
www.eeworm.com/read/458682/7291354

sh ex69.sh

#!/bin/bash # Non-interactive use of 'vi' to edit a file. # Emulates 'sed'. E_BADARGS=65 if [ -z "$1" ] then echo "Usage: `basename $0` filename" exit $E_BADARGS fi TARGETFILE=$1 # Insert 2 l
www.eeworm.com/read/458682/7291358

sh ex18.sh

#!/bin/bash # ex18.sh # Does a 'whois domain-name' lookup on any of 3 alternate servers: # ripe.net, cw.net, radb.net # Place this script -- renamed 'wh' -- in /usr/local/bin # R
www.eeworm.com/read/458682/7291367

sh agram2.sh

#!/bin/bash # agram2.sh # Example of nested command substitution. # Uses "anagram" utility #+ that is part of the author's "yawl" word list package. # http://ibiblio.org/pub/Linux/libs/yawl-0.3.2.t
www.eeworm.com/read/458682/7291390

sh ex65.sh

#!/bin/bash # delete.sh, not-so-cunning file deletion utility. # Usage: delete filename E_BADARGS=65 if [ -z "$1" ] then echo "Usage: `basename $0` filename" exit $E_BADARGS # No arg? Bail o
www.eeworm.com/read/458682/7291396

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/458682/7291409

sh self-copy.sh

#!/bin/bash # self-copy.sh # This script copies itself. file_subscript=copy dd if=$0 of=$0.$file_subscript 2>/dev/null # Suppress messages from dd: ^^^^^^^^^^^ exit $? # A program whose only o
www.eeworm.com/read/458682/7291458

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/458682/7291466

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/458682/7291469

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 "