代码搜索:bash

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

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

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/339483/12230861

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/339483/12230893

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/339483/12231371

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/339483/12231443

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
www.eeworm.com/read/339483/12231503

sh reply.sh

#!/bin/bash # reply.sh # REPLY is the default value for a 'read' command. echo echo -n "What is your favorite vegetable? " read echo "Your favorite vegetable is $REPLY." # REPLY holds the value of
www.eeworm.com/read/339483/12231627

sh ex48.sh

#!/bin/bash # Copying a directory tree using 'cpio.' # Advantages of using 'cpio': # Speed of copying. It's faster than 'tar' with pipes. # Well suited for copying special files (named pipes, et
www.eeworm.com/read/339483/12231688

sh ex22.sh

#!/bin/bash # Listing the planets. for planet in Mercury Venus Earth Mars Jupiter Saturn Uranus Neptune Pluto do echo $planet # Each planet on a separate line. done echo for planet in "Mercury V
www.eeworm.com/read/339483/12231697

sh userlist.sh

#!/bin/bash # userlist.sh PASSWORD_FILE=/etc/passwd n=1 # User number for name in $(awk 'BEGIN{FS=":"}{print $1}' < "$PASSWORD_FILE" ) # Field separator = : ^^^^^^ # Print first field
www.eeworm.com/read/339483/12231774

sh ex31.sh

#!/bin/bash PS3='Choose your favorite vegetable: ' # Sets the prompt string. echo select vegetable in "beans" "carrots" "potatoes" "onions" "rutabagas" do echo echo "Your favorite veggie is $ve