代码搜索:bash

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

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

sh bin-grep.sh

#!/bin/bash # bin-grep.sh: Locates matching strings in a binary file. # A "grep" replacement for binary files. # Similar effect to "grep -a" E_BADARGS=65 E_NOFILE=66 if [ $# -ne 2 ] then echo "Us
www.eeworm.com/read/339483/12230518

sh unalias.sh

#!/bin/bash # unalias.sh shopt -s expand_aliases # Enables alias expansion. alias llm='ls -al | more' llm echo unalias llm # Unset alias. llm # Error message results, since 'llm' no
www.eeworm.com/read/339483/12230687

sh realname.sh

#!/bin/bash # realname.sh # # From username, gets "real name" from /etc/passwd. ARGCOUNT=1 # Expect one arg. E_WRONGARGS=65 file=/etc/passwd pattern=$1 if [ $# -ne "$ARGCOUNT" ] then echo
www.eeworm.com/read/339483/12230782

sh embedded-arrays.sh

#!/bin/bash # embedded-arrays.sh # Embedded arrays and indirect references. # This script by Dennis Leeuw. # Used with permission. # Modified by document author. ARRAY1=( VAR1_1=value11
www.eeworm.com/read/339483/12230817

sh stack.sh

#!/bin/bash # stack.sh: push-down stack simulation # Similar to the CPU stack, a push-down stack stores data items #+ sequentially, but releases them in reverse order, last-in first-out. BP=100
www.eeworm.com/read/339483/12231425

sh colm.sh

#!/bin/bash # This is a slight modification of the example file in the "column" man page. (printf "PERMISSIONS LINKS OWNER GROUP SIZE MONTH DAY HH:MM PROG-NAME\n" \ ; ls -l | sed 1d) | column -t #
www.eeworm.com/read/339483/12231439

sh escaped.sh

#!/bin/bash # escaped.sh: escaped characters echo; echo echo "\v\v\v\v" # Prints \v\v\v\v literally. # Use the -e option with 'echo' to print escaped characters. echo "=============" echo "VERT
www.eeworm.com/read/339483/12231463

sh array-ops.sh

#!/bin/bash # array-ops.sh: More fun with arrays. array=( zero one two three four five ) # Element 0 1 2 3 4 5 echo ${array[0]} # zero echo ${array:0} # zero
www.eeworm.com/read/339483/12231564

sh for-loopc.sh

#!/bin/bash # Two ways to count up to 10. echo # Standard syntax. for a in 1 2 3 4 5 6 7 8 9 10 do echo -n "$a " done echo; echo # +==========================================+ # Now, let's do
www.eeworm.com/read/339483/12231691

sh ex35.sh

#!/bin/bash a=/home/bozo/daily-journal.txt echo "Basename of /home/bozo/daily-journal.txt = `basename $a`" echo "Dirname of /home/bozo/daily-journal.txt = `dirname $a`" echo echo "My own home is `ba