代码搜索:bash
找到约 5,321 项符合「bash」的源代码
代码结果 5,321
www.eeworm.com/read/351829/10605086
in quilt.in
#! @BASH@
# This script is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
#
www.eeworm.com/read/463331/7183100
sh creatempkg.sh
#!/bin/bash
TARGET="etorch"
VERSION="0.1"
cp $TARGET mpkg/$TARGET
arm-linux-strip mpkg/$TARGET/$TARGET
tar -C mpkg -cvzf $TARGET-$VERSION.mpkg $TARGET
rm -f mpkg/$TARGET/$TARGET
www.eeworm.com/read/448423/7533721
sh creatempkg.sh
#!/bin/bash
TARGET="esame"
VERSION="0.1"
cp $TARGET mpkg/$TARGET
arm-linux-strip mpkg/$TARGET/$TARGET
tar -C mpkg -cvzf $TARGET-$VERSION.mpkg $TARGET
rm -f mpkg/$TARGET/$TARGET
www.eeworm.com/read/438832/7725362
sh self-copy.sh
#!/bin/bash
# self-copy.sh
# 这个脚本会拷贝自身.
file_subscript=copy
dd if=$0 of=$0.$file_subscript 2>/dev/null
# 阻止dd产生的消息: ^^^^^^^^^^^
exit $?
www.eeworm.com/read/438832/7725774
sh ex3.sh
#!/bin/bash
# 这个简单的脚本可以把文件中所有的空行删除.
# 没做参数检查.
#
# 你或许想添加如下代码:
#
# E_NOARGS=65
# if [ -z "$1" ]
# then
# echo "Usage: `basename $0` target-file"
# exit $E_NOARGS
# fi
# 这个脚本调用起来的效果,
# 等价于从命令行上
www.eeworm.com/read/397090/8069262
sh case_test.sh
#!/bin/bash
case $( arch ) in
i386 ) echo "80386-based machine";;
i486 ) echo "80486-based machine";;
i586 ) echo "Pentium-based machine";;
i686 ) echo "Pentium2+-based machine";;
* ) echo "Other
www.eeworm.com/read/397090/8069265
sh param_test.sh
#!/bin/bash
#param_test.sh
#dxzhang@ustc.edu
echo "1: "
A=1234
B=$A
echo $A
echo $B
echo "2: "
unset A
B=${A-2345}
echo $A
echo $B
echo "3: "
A=
B=${A-3456}
echo $A
echo $B
echo "4: "
A=
B=${A:-4
www.eeworm.com/read/397085/8069365
sh case_test.sh
#!/bin/bash
case $( arch ) in
i386 ) echo "80386-based machine";;
i486 ) echo "80486-based machine";;
i586 ) echo "Pentium-based machine";;
i686 ) echo "Pentium2+-based machine";;
* ) echo "Other
www.eeworm.com/read/397085/8069367
sh param_test.sh
#!/bin/bash
#param_test.sh
#dxzhang@ustc.edu
echo "1: "
A=1234
B=$A
echo $A
echo $B
echo "2: "
unset A
B=${A-2345}
echo $A
echo $B
echo "3: "
A=
B=${A-3456}
echo $A
echo $B
echo "4: "
A=
B=${A:-4