代码搜索:bash
找到约 5,321 项符合「bash」的源代码
代码结果 5,321
www.eeworm.com/read/458682/7291337
sh ex42.sh
#!/bin/bash
# copydir.sh
# Copy (verbose) all files in current directory ($PWD)
#+ to directory specified on command line.
E_NOARGS=65
if [ -z "$1" ] # Exit if no argument given.
then
echo "Us
www.eeworm.com/read/458682/7291345
sh directory-info.sh
#! /bin/bash
# directory-info.sh
# Parses and lists directory information.
# NOTE: Change lines 273 and 353 per "README" file.
# Michael Zick is the author of this script.
# Used here with his permi
www.eeworm.com/read/458682/7291349
sh set-pos.sh
#!/bin/bash
variable="one two three four five"
set -- $variable
# Sets positional parameters to the contents of "$variable".
first_param=$1
second_param=$2
shift; shift # Shift past first tw
www.eeworm.com/read/458682/7291374
sh spawn.sh
#!/bin/bash
# spawn.sh
PIDS=$(pidof sh $0) # Process IDs of the various instances of this script.
P_array=( $PIDS ) # Put them in an array (why?).
echo $PIDS # Show process IDs of pare
www.eeworm.com/read/458682/7291453
sh ex17.sh
#!/bin/bash
# Call this script with at least 10 parameters, for example
# ./scriptname 1 2 3 4 5 6 7 8 9 10
MINPARAMS=10
echo
echo "The name of this script is \"$0\"."
# Adds ./ for current directo
www.eeworm.com/read/458682/7291455
sh archiveweblogs.sh
#!/bin/bash
# archiveweblogs.sh v1.0
# Troy Engel <tengel@fluid.com>
# Slightly modified by document author.
# Used with permission.
#
# This script will preserve the normally rotated and
#+ t
www.eeworm.com/read/458682/7291459
sh homework.sh
#!/bin/bash
# homework.sh: All-purpose homework assignment solution.
# Author: M. Leo Cooper
# If you substitute your own name as author, then it is plagiarism,
#+ possibly a lesser sin than cheatin
www.eeworm.com/read/458682/7291481
sh viewdata.sh
#!/bin/bash
# viewdata.sh
# Conversion of VIEWDATA.BAT to shell script.
DATAFILE=/home/bozo/datafiles/book-collection.data
ARGNO=1
# @ECHO OFF Command unnecessary here.
if [ $# -lt
www.eeworm.com/read/458682/7291495
sh redir1.sh
#!/bin/bash
# Redirecting stdin using 'exec'.
exec 6
www.eeworm.com/read/458682/7291497
sh rand-string.sh
#!/bin/bash
# rand-string.sh
# Generating an 8-character "random" string.
if [ "-n $1" ] # If command line argument present,
then #+ then set start-string to it.
str0="$1"
else