代码搜索:bash
找到约 5,321 项符合「bash」的源代码
代码结果 5,321
www.eeworm.com/read/250015/4443080
sub arith2.sub
# bash 3.2 apparently thinks that ++7 is 7 etc
( echo $(( --7 )) )
( echo $(( ++7 )) )
( echo $(( -- 7 )) )
( echo $(( ++ 7 )) )
#ash# ((++array[0] ))
#ash# echo 1 $array
#ash# (( ++ array[
www.eeworm.com/read/245254/4505320
sh header_gen.sh
#!/bin/bash
if [ "$1" = "" -o "$2" = "" -o "$3" = "" ]; then
echo Generate Free Software Header
echo Usage: $0 \"Copyright holder\" EMail-Address Filename
exit 1
fi
filename=`basename $3
www.eeworm.com/read/245254/4505322
sh lgpl_header_gen.sh
#!/bin/bash
if [ "$1" = "" -o "$2" = "" -o "$3" = "" ]; then
echo Generate LGPL Free Software Header
echo Usage: $0 \"Copyright holder\" EMail-Address Filename
exit 1
fi
filename=`basena
www.eeworm.com/read/240204/4577551
generatemakefile
#!/usr/bin/bash
if [ "${PCCTS}" = "" ]; then
PCCTS=./pccts
fi
${PCCTS}/bin/genmk -trees -project parser -header parser.h -o .. parser.g > Makefile
#patch Makefile < Makefile.patch
www.eeworm.com/read/240185/4578541
wikify_latest_changelog
#!/bin/bash
## This file is part of the aMule Project
##
## Copyright (c) 2006 Angel Vidal (Kry) ( kry@amule.org )
## Copyright (c) 2006 aMule Project ( http://www.amule-project.net )
##
www.eeworm.com/read/239312/4602396
perm_check
#!/bin/bash
# Using the old style test command
# filename: perm_check
file=./testing
if [ -d $file ]
then
echo "$file is a directory"
elif [ -f $file ]
then
if [ -r $file -a -w $file -a -x $file
www.eeworm.com/read/239312/4602405
args
#!/bin/bash
# Scriptname: args
# Script to test command line arguments
echo The name of this script is $0.
echo The arguments are $*.
echo The first argument is $1.
echo The second argument is $2.
ech
www.eeworm.com/read/239312/4602412
opts3
#!/bin/bash
# Program: opts3
# Using getopts -- Third try --
while getopts dq: options
do
case $options in
d) echo "-d is a valid switch ";;
q) echo "The argument for -q is $OPTARG";;
www.eeworm.com/read/239312/4602450
backup
#!/bin/bash
# Scriptname: backup
# Purpose: Create backup files and store
# them in a backup directory.
#
dir=/home/jody/ellie/backupscripts
for file in memo[1-5]
do
if [ -f $file ]
then
cp
www.eeworm.com/read/239230/4604887
sub arith2.sub
# bash 3.2 apparently thinks that ++7 is 7 etc
( echo $(( --7 )) )
( echo $(( ++7 )) )
( echo $(( -- 7 )) )
( echo $(( ++ 7 )) )
#ash# ((++array[0] ))
#ash# echo 1 $array
#ash# (( ++ array[