代码搜索:bash
找到约 5,321 项符合「bash」的源代码
代码结果 5,321
www.eeworm.com/read/440773/1791684
sh syn-sparql2.sh
#!/bin/bash
# Query syntax examples
# More tests
function fname
{
R="$1"
N="$2"
E="$3"
[ "$E" = "" ] && E="rq"
echo $(printf "$R%02d.$E" $N)
}
# Not in origina
www.eeworm.com/read/440120/1801524
sh install_wmsnmp_from_srctree.sh
#!/bin/bash
#
#
#
# Copyright 2000-2004 Wind River Systems, Inc.
# All rights reserved. Provided under license only.
# Distribution or other use of this software is only
# permitted pursuant to the
www.eeworm.com/read/433911/1880508
readme
James -
I found a couple of problems in my original patch, but I believe this one
works.
In order to use it:
1) Open a Cygwin console and:
Unpack the sources:
[bash-2.02]$ cd $ACE_
www.eeworm.com/read/428548/1958466
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/428548/1958613
tests var_preserved.tests
export a=b
# external program
a=c /bin/true
env | grep ^a=
# builtin
a=d true
env | grep ^a=
# exec with redirection only
# in bash, this leaks!
a=e exec 1>&1
env | grep ^a=
echo OK
www.eeworm.com/read/407756/2258858
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/407756/2258867
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/407756/2258874
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/407756/2258912
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/395930/2427219
dolcc
#!/bin/bash
# Check whether a simulation time is given.
if [ -z "$1" ] ; then
echo "Please specify a simulation time as the second argument, e.g."
echo "to simulate 10 minutes type: " $0 "10"