代码搜索:bash

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

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

sh ex73.sh

#!/bin/bash # Creating a swapfile. ROOT_UID=0 # Root has $UID 0. E_WRONG_USER=65 # Not root? FILE=/swap BLOCKSIZE=1024 MINBLOCKS=40 SUCCESS=0 # This script must be run as root. if [ "$U
www.eeworm.com/read/339483/12230513

sh factr.sh

#!/bin/bash # factr.sh: Factor a number MIN=2 # Will not work for number smaller than this. E_NOARGS=65 E_TOOSMALL=66 if [ -z $1 ] then echo "Usage: $0 number" exit $E_NOARGS fi if [ "$1"
www.eeworm.com/read/339483/12230757

sh pick-card.sh

#!/bin/bash # pick-card.sh # This is an example of choosing random elements of an array. # Pick a card, any card. Suites="Clubs Diamonds Hearts Spades" Denominations="2 3 4 5 6 7 8 9 10 Jack Quee
www.eeworm.com/read/339483/12231584

sh hexconvert.sh

#!/bin/bash # hexconvert.sh: Convert a decimal number to hexadecimal. E_NOARGS=65 # Command-line arg missing. BASE=16 # Hexadecimal. if [ -z "$1" ] then echo "Usage: $0 number" exit $E_NOARG
www.eeworm.com/read/339483/12231593

sh quote-fetch.sh

#!/bin/bash # quote-fetch.sh: Download a stock quote. E_NOPARAMS=66 if [ -z "$1" ] # Must specify a stock (symbol) to fetch. then echo "Usage: `basename $0` stock-symbol" exit $E_NOPARAMS fi
www.eeworm.com/read/339483/12231611

sh rnd.sh

#!/bin/bash # rnd.sh: Outputs a 10-digit random number # Script by Stephane Chazelas. head -c4 /dev/urandom | od -N4 -tu4 | sed -ne '1s/.* //p' # ==================================================
www.eeworm.com/read/339483/12231684

sh patt-matching.sh

#!/bin/bash # patt-matching.sh # Pattern matching using the # ## % %% parameter substitution operators. var1=abcd12345abc6789 pattern1=a*c # * (wild card) matches everything between a - c. echo e
www.eeworm.com/read/339483/12231755

sh arglist.sh

#!/bin/bash # arglist.sh # Invoke this script with several arguments, such as "one two three". E_BADARGS=65 if [ ! -n "$1" ] then echo "Usage: `basename $0` argument1 argument2 etc." exit $E_BAD
www.eeworm.com/read/339483/12231789

sh seconds.sh

#!/bin/bash TIME_LIMIT=10 INTERVAL=1 echo echo "Hit Control-C to exit before $TIME_LIMIT seconds." echo while [ "$SECONDS" -le "$TIME_LIMIT" ] do if [ "$SECONDS" -eq 1 ] then units=second
www.eeworm.com/read/227899/14406733

sh create_binary_release.sh

#!/bin/bash RELEASE=0.1 DESTDIR=/tmp/voifax-bin-$RELEASE mkdir $DESTDIR make all -C .. cp -r ../voice ../modemsim ../generic.inf ../voiceport.conf ../doc ../script ../util $DESTDIR tar zcvf voifax-bi