代码搜索:bash
找到约 5,321 项符合「bash」的源代码
代码结果 5,321
www.eeworm.com/read/349844/10796222
example externalau.sh.example
#!/bin/bash
URL="http://www.some-host.com/aes/"
key=`wget -q -O- -U "Mozilla" "--referer=$URL" "$URL" | sed -ne '/007C00/ s/^.*clef Pri//p' | sed -ne 's/.*$//p' | sed -ne 's/: [0-9]\{2\} ://gp'
www.eeworm.com/read/458682/7291382
sh subshell.sh
#!/bin/bash
# subshell.sh
echo
echo "We are outside the subshell."
echo "Subshell level OUTSIDE subshell = $BASH_SUBSHELL"
# Bash, version 3, adds the new $BASH_SUBSHELL variable.
echo; echo
www.eeworm.com/read/458682/7291437
sh return-test.sh
#!/bin/bash
# return-test.sh
# The largest positive value a function can return is 255.
return_test () # Returns whatever passed to it.
{
return $1
}
return_test 27 # o.k.
echo $?
www.eeworm.com/read/445413/7595653
publish_bft
#!/bin/bash
cd ..
rm -f bft.tar.bz2
tar -c -f bft.tar bft/*.m bft/*.mexlx bft/*mexglx bft/*.dll bft/doc/bft_user_guide.pdf bft/examples/*.m
bzip2 bft.tar
mv bft.tar.bz2 /home/esftp/pub/sn/bft/
cd b
www.eeworm.com/read/438832/7725316
sh var-match.sh
#!/bin/bash
# var-match.sh:
# 对字符串的前缀和后缀进行模式替换的一个演示.
v0=abc1234zip1234abc # 变量原始值.
echo "v0 = $v0" # abc1234zip1234abc
echo
# 匹配字符串的前缀(开头).
v1=${v0/#abc/ABCDEF} # abc1234zip1234abc
www.eeworm.com/read/438832/7725838
sh ifs.sh
#!/bin/bash
# $IFS 处理空白与处理其他字符不同.
output_args_one_per_line()
{
for arg
do echo "[$arg]"
done
}
echo; echo "IFS=\" \""
echo "-------"
IFS=" "
var=" a b c "
output_args_one_per_line $var #
www.eeworm.com/read/408174/11402836
example externalau.sh.example
#!/bin/bash
URL="http://www.some-host.com/aes/"
key=`wget -q -O- -U "Mozilla" "--referer=$URL" "$URL" | sed -ne '/007C00/ s/^.*clef Pri//p' | sed -ne 's/.*$//p' | sed -ne 's/: [0-9]\{2\} ://gp'
www.eeworm.com/read/260832/11699985
switch2omk
#!/bin/bash
MAKEFILES=`find . -name Makefile.omk`
for i in ${MAKEFILES} ; do
i=`dirname ${i}`
rm -f ${i}/Makefile
cp Makefile4omk ${i}/Makefile
done
make default-config