代码搜索:bash
找到约 5,321 项符合「bash」的源代码
代码结果 5,321
www.eeworm.com/read/35675/1059640
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/490530/1197927
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/475888/1375566
do-all-from-host
#!/bin/bash
#
# Copyright 1990-2008 Sun Microsystems, Inc. All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
#
# This program is free software; you can redistribute
www.eeworm.com/read/475888/1375576
gen-from-host
#!/bin/bash
#
# Copyright 1990-2008 Sun Microsystems, Inc. All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
#
# This program is free software; you can redistribute
www.eeworm.com/read/475888/1375577
gen-all
#!/bin/bash
#
# Copyright 1990-2008 Sun Microsystems, Inc. All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
#
# This program is free software; you can redistribute
www.eeworm.com/read/475888/1375582
comp-all
#!/bin/bash
#
# Copyright 1990-2007 Sun Microsystems, Inc. All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
#
# This program is free software; you can redistribute
www.eeworm.com/read/475888/1375583
do-all
#!/bin/bash
#
# Copyright 1990-2007 Sun Microsystems, Inc. All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
#
# This program is free software; you can redistribute
www.eeworm.com/read/475888/1380191
autotest
#!/bin/bash
#
# Copyright 1990-2006 Sun Microsystems, Inc. All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
#
# This program is free software; you can redistribute
www.eeworm.com/read/453168/1642085
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/453168/1642227
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