代码搜索:bash
找到约 5,321 项符合「bash」的源代码
代码结果 5,321
www.eeworm.com/read/361920/10029347
sh counter.sh
#!/bin/bash
a=`more ./src/counter.dat`
let a=a+1
echo Build number : $a
`echo $a > ./src/counter.dat`
#a="#define build $a"
echo -n "#define build " > ./src/build.h
echo \"$a\" >> ./src/build.h
www.eeworm.com/read/355813/10243546
txt abs_guide_cn.txt
译者序
毫无疑问,UNIX/Linux最重要的软件之一就是shell,目前最流行的shell被称为<mark>Bash</mark>(Bourne Again Shell),几乎所有的Linux和绝大部分的UNIX都可以使用<mark>Bash</mark>。作为系统与用户之间的交互接口,shell几乎是你在UNIX工作平台上最亲密的朋友,因此,学好shell,是学习Linux/UNIX的的开始,并且它会始终伴随你的工作学习。
shel ...
www.eeworm.com/read/424752/10416039
sh convert_to_gif.sh
#!/bin/bash
if [ ! -f pic.ppm ]; then
echo "Can't find pic.ppm"
exit 0
fi
ppmquant 256 pic.ppm | ppmtogif > pic.gif
www.eeworm.com/read/424752/10416138
sh print_exposure.sh
#!/bin/bash
while [ true ]; do
if [ -f /proc/video/quickcam/video0 ]; then
cat /proc/video/quickcam/video0 | head -53 | tail -11
fi
usleep 200000
done
www.eeworm.com/read/419426/10868152
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/272978/10934288
sh calc_awk.sh
#!/bin/bash
i=0;
while [ $i -lt 100 ]
do
i=$(echo "$i 1" | awk '{printf $1+$2;}')
done
echo $i
www.eeworm.com/read/272978/10934295
sh genrandomtext.sh
#!/bin/bash
# genrandomdata.sh
for i in $(seq 1 10)
do
echo $i $(($RANDOM/8192+3)) $((RANDOM/10+3000))
done
www.eeworm.com/read/465624/7050712
sh run.sh
#!/bin/bash
cd ../
clear;make
cd puma
rm out
ns puma.tcl > out
www.eeworm.com/read/296774/7113888
x-lynx
# /bin/cc is hopelessly broken, so we must use /bin/gcc instead.
CC = $(OLDCC)
OLDCC = /bin/gcc
# /bin/sh is too buggy, so use /bin/bash instead.
SHELL = /bin/bash
# Show we need to use the C versio
www.eeworm.com/read/296774/7113930
x-lynx
# /bin/cc is hopelessly broken, so we must use /bin/gcc instead.
CC = $(OLDCC)
OLDCC = /bin/gcc
# /bin/sh is too buggy, so use /bin/bash instead.
SHELL = /bin/bash