代码搜索:bash

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

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

sh makedict.sh

#!/bin/bash # makedict.sh [make dictionary] # Modification of /usr/sbin/mkdict (/usr/sbin/cracklib-forman) script. # Original script copyright 1993, by Alec Muffett. # # This modified script includ
www.eeworm.com/read/458682/7291346

sh dd-keypress.sh

#!/bin/bash # dd-keypress.sh: Capture keystrokes without needing to press ENTER. keypresses=4 # Number of keypresses to capture. old_tty_setting=$(stty -g) # Save old t
www.eeworm.com/read/458682/7291347

sh ex5.sh

#!/bin/bash echo hello echo $? # Exit status 0 returned because command executed successfully. lskdf # Unrecognized command. echo $? # Non-zero exit status returned because command failed
www.eeworm.com/read/458682/7291362

sh copyarray.sh

#! /bin/bash # CopyArray.sh # # This script written by Michael Zick. # Used here with permission. # How-To "Pass by Name & Return by Name" #+ or "Building your own assignment statement". CpArray_M
www.eeworm.com/read/458682/7291364

sh ex22a.sh

#!/bin/bash # Planets revisited. # Associate the name of each planet with its distance from the sun. for planet in "Mercury 36" "Venus 67" "Earth 93" "Mars 142" "Jupiter 483" do set -- $planet #
www.eeworm.com/read/458682/7291365

sh ex66.sh

#!/bin/bash area[11]=23 area[13]=37 area[51]=UFOs # Array members need not be consecutive or contiguous. # Some members of the array can be left uninitialized. # Gaps in the array are okay. #
www.eeworm.com/read/458682/7291385

sh ex52.sh

#!/bin/bash # Uudecodes all uuencoded files in current working directory. lines=35 # Allow 35 lines for the header (very generous). for File in * # Test all the files in $PWD. do search1=
www.eeworm.com/read/458682/7291393

sh recurse.sh

#!/bin/bash # recurse.sh # Can a script recursively call itself? # Yes, but is this of any practical use? # (See the following.) RANGE=10 MAXVAL=9 i=$RANDOM let "i %= $RANGE" # Generate a rando
www.eeworm.com/read/458682/7291405

sh read-r.sh

#!/bin/bash echo echo "Enter a string terminated by a \\, then press <ENTER>." echo "Then, enter a second string (no \\ this time), and again press <ENTER>." read var1 # The "\" sup
www.eeworm.com/read/458682/7291414

sh ex59.sh

#!/bin/bash JUST_A_SECOND=1 funky () { # This is about as simple as functions get. echo "This is a funky function." echo "Now exiting funky function." } # Function declaration must precede call.