代码搜索:bash
找到约 5,321 项符合「bash」的源代码
代码结果 5,321
www.eeworm.com/read/461921/7214450
sh init_fw_update_test_nor.sh
#!/bin/bash
# Run this to initialise the file system for the test runs.
./yaffs_test -u -i M18-1
www.eeworm.com/read/459549/7273940
sh init_fw_update_test_nor.sh
#!/bin/bash
# Run this to initialise the file system for the test runs.
./yaffs_test -u -i M18-1
www.eeworm.com/read/458682/7291312
sh ex50.sh
#!/bin/bash
WIDTH=40 # 40 columns wide.
b=`ls /usr/local/bin` # Get a file listing...
echo $b | fmt -w $WIDTH
# Could also have been done by
# echo $b | fold - -s -w $W
www.eeworm.com/read/458682/7291556
html ioredirintro.html
A Detailed Introduction to I/O and I/O Redirection
www.eeworm.com/read/439360/7711587
pds test.pds
#!/bin/bash
#PBS -V
cd $PBS_O_WORKDIR
mpirun ./karman
www.eeworm.com/read/438832/7725271
sh ex50.sh
#!/bin/bash
WIDTH=40 # 设为40列宽.
b=`ls /usr/local/bin` # 取得文件列表...
echo $b | fmt -w $WIDTH
# 也可以使用如下方法, 作用是相同的.
# echo $b | fold - -s -w $WIDTH
exit 0
www.eeworm.com/read/438832/7725299
sh agram.sh
#!/bin/bash
# agram.sh: 使用anagram来玩游戏.
# 寻找anagram...
LETTERSET=etaoinshrdlu
FILTER='.......' # 最少有多少个字母?
# 1234567
anagram "$LETTERSET" | # 找出这个字符串中所有的anagram...
grep "$FILTER" |
www.eeworm.com/read/438832/7725303
sh ex5.sh
#!/bin/bash
echo hello
echo $? # 退出状态为0, 因为命令执行成功.
lskdf # 无效命令.
echo $? # 非零的退出状态, 因为命令执行失败.
echo
exit 113 # 返回113退出状态给shell.
# 为了验证这个结果, 可以在脚本结束的地方使用"echo $?".
# 一般的,
www.eeworm.com/read/438832/7725340
sh ex26.sh
#!/bin/bash
echo
# 等价于:
while [ "$var1" != "end" ] # while test "$var1" != "end"
do
echo "Input variable #1 (end to exit) "
read var1 # 为什么不使
www.eeworm.com/read/438832/7725348
sh for-loopcmd.sh
#!/bin/bash
# for-loopcmd.sh: 带[list]的for循环,
#+ [list]是由命令替换所产生的.
NUMBERS="9 7 3 8 37.53"
for number in `echo $NUMBERS` # for number in 9 7 3 8 37.53
do
echo -n "$number "
done
echo
exit 0