代码搜索:bash
找到约 5,321 项符合「bash」的源代码
代码结果 5,321
www.eeworm.com/read/371500/9551362
sh test_speed.sh
#!/bin/bash
echo 1
time ./eff 1 < ../data1 2> /dev/null
echo 2
time ./eff 2 < ../data1 2> /dev/null
echo 4
time ./eff 4 < ../data1 2> /dev/null
echo 8
time ./eff 8 < ../data1 2> /
www.eeworm.com/read/371050/9570160
backup
#! /bin/sh
# this bash used to back the source of SEU-3D
## Created By Xu Yuan @2005-11-03
## fix Bug @2006-2-14
BACK_FILE=`ls seu-3d-*`
if `test BACK_FILE$`; \
then rm -fr seu
www.eeworm.com/read/277261/10650265
txt 拆分文件的小程序.txt
#!/bin/bash
#将打文本文件分为$lines行的小文件
lines=10000
if [ $# -eq 1 ]
then
fln0=`dirname $1`
fln1=`basename $1 .txt`
fln2=".txt"
#echo "$fln1"
#echo "$fln2"
else
echo "parameter is $#"
exit
www.eeworm.com/read/275170/10832631
sh setup.sh
#!/bin/bash
# ATMEL Wireless Card Setup for linux
# Copyright 2001 (c) ATMEL Hellas
CONFIG_MK=config.mk
CONFIG_H=config.h
function Checkxforms ()
{
if [ -r /usr/include/X11/Xlib.h -o -r /usr/X11R6/i
www.eeworm.com/read/458682/7291389
sh ex33a.sh
#!/bin/bash
# Using getopt
# Try the following when invoking this script:
# sh ex33a.sh -a
# sh ex33a.sh -abc
# sh ex33a.sh -a -b -c
# sh ex33a.sh -d
# sh ex33a.sh -dXYZ
# sh ex33a.sh -d
www.eeworm.com/read/458682/7291474
sh ex20.sh
#!/bin/bash
func1 ()
{
echo This is a function.
}
declare -f # Lists the function above.
echo
declare -i var1 # var1 is an integer.
var1=2367
echo "var1 declared as $var1"
var1=var1+1
www.eeworm.com/read/458682/7291706
sh color-echo.sh
#!/bin/bash
# color-echo.sh: Echoing text messages in color.
# Modify this script for your own purposes.
# It's easier than hand-coding color.
black='\E[30;47m'
red='\E[31;47m'
green='\E[32;47m'
yel
www.eeworm.com/read/454436/7390703
sh mk.sh
#! /bin/bash
make CC=/root/arm/buildroot/build_arm/staging_dir/usr/bin/arm-linux-uclibc-gcc LD=/root/arm/buildroot/build_arm/staging_dir/usr/bin/arm-linux-uclibc-ld -C /root/arm/buildroot/project_buil
www.eeworm.com/read/438832/7725279
sh ex53.sh
#!/bin/bash
# 使用"seq"
echo
for a in `seq 80` # or for a in $( seq 80 )
# 与 for a in 1 2 3 4 5 ... 80 相同(少敲了好多字!).
# 也可以使用'jot'(如果系统上有的话).
do
echo -n "$a "
done # 1 2 3 4 5 ... 80
# 这也是一
www.eeworm.com/read/438832/7725307
sh ex12.sh
#!/bin/bash
filename=sys.log
cat /dev/null > $filename; echo "Creating / cleaning out file."
# 如果文件不存在的话就创建文件,
#+ 然后将这个文件清空.
# : > filename 和 > filename 也能完成这个工作.
tail /var/log/messages > $fi