代码搜索:bash

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

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

sh func-cmdlinearg.sh

#!/bin/bash # func-cmdlinearg.sh # Call this script with a command-line argument, #+ something like $0 arg1. func () { echo "$1" } echo "First call to function: no arg passed." echo "See if comma
www.eeworm.com/read/458682/7291662

sh ex14.sh

#!/bin/bash # zmore #View gzipped files with 'more' NOARGS=65 NOTFOUND=66 NOTGZIP=67 if [ $# -eq 0 ] # same effect as: if [ -z "$1" ] # $1 can exist, but be empty: zmore "" arg2 arg3 then echo
www.eeworm.com/read/458682/7291666

sh rfe.sh

#!/bin/bash # rfe.sh: Renaming file extensions. # # rfe old_extension new_extension # # Example: # To rename all *.gif files in working directory to *.jpg, # rfe gif jpg E_BADARGS=6
www.eeworm.com/read/458682/7291675

sh rn.sh

#! /bin/bash # # Very simpleminded filename "rename" utility (based on "lowercase.sh"). # # The "ren" utility, by Vladimir Lanin (lanin@csd2.nyu.edu), #+ does a much better job of this. ARGS=2 E_BA
www.eeworm.com/read/458682/7291716

sh sum-product.sh

#!/bin/bash # sum-product.sh # A function may "return" more than one value. sum_and_product () # Calculates both sum and product of passed args. { echo $(( $1 + $2 )) $(( $1 * $2 )) # Echoes to s
www.eeworm.com/read/458682/7291723

sh ind-func.sh

#!/bin/bash # ind-func.sh: Passing an indirect reference to a function. echo_var () { echo "$1" } message=Hello Hello=Goodbye echo_var "$message" # Hello # Now, let's pass an indirect refere
www.eeworm.com/read/458682/7291735

sh connect-stat.sh

#!/bin/bash PROCNAME=pppd # ppp daemon PROCFILENAME=status # Where to look. NOTCONNECTED=65 INTERVAL=2 # Update every 2 seconds. pidno=$( ps ax | grep -v "ps ax" | grep -v grep | g
www.eeworm.com/read/458682/7291736

sh wf2.sh

#!/bin/bash # wf2.sh: Crude word frequency analysis on a text file. # Uses 'xargs' to decompose lines of text into single words. # Compare this example to the "wf.sh" script later on. # Check for i
www.eeworm.com/read/458682/7291738

sh paragraph-space.sh

#!/bin/bash # paragraph-space.sh # Inserts a blank line between paragraphs of a single-spaced text file. # Usage: $0 <FILENAME MINLEN=45 # May need to change this value. # Assume lines sh
www.eeworm.com/read/441132/7675441

init sshd.init

#!/bin/bash # # Init file for OpenSSH server daemon # # chkconfig: 2345 55 25 # description: OpenSSH server daemon # # processname: sshd # config: /etc/ssh/ssh_host_key # config: /etc/ssh/ssh_host_key