代码搜索:bash
找到约 5,321 项符合「bash」的源代码
代码结果 5,321
www.eeworm.com/read/438832/7725407
sh pid-identifier.sh
#!/bin/bash
# pid-identifier.sh: 给出与指定pid相关联进程的完整路径名.
ARGNO=1 # 期望的参数个数.
E_WRONGARGS=65
E_BADPID=66
E_NOSUCHPROCESS=67
E_NOPERMISSION=68
PROCFILE=exe
if [ $# -ne $ARGNO ]
then
echo "Usage: `bas
www.eeworm.com/read/438832/7725439
sh exercising-dd.sh
#!/bin/bash
# exercising-dd.sh
# 由Stephane Chazelas编写.
# 本文作者做了少量修改.
input_file=$0 # 脚本自身.
output_file=log.txt
n=3
p=5
dd if=$input_file of=$output_file bs=1 skip=$((n-1)) count=$((p-n+1)) 2>
www.eeworm.com/read/438832/7725825
sh rot13a.sh
#!/bin/bash
# rot13a.sh: 与"rot13.sh"脚本相同, 但是会将输出写到"安全"文件中.
# 用法: ./rot13a.sh filename
# 或 ./rot13a.sh <filename
# 或 ./rot13a.sh同时提供键盘输入(stdin)
umask 177 # 文件创建掩码.
www.eeworm.com/read/438832/7725892
sh ex76.sh
#!/bin/bash
# 使用trap来捕捉变量值.
trap 'echo Variable Listing --- a = $a b = $b' EXIT
# EXIT是脚本中exit命令所产生信号的名字.
#
# "trap"所指定的命令并不会马上执行,
#+ 只有接收到合适的信号, 这些命令才会执行.
echo "This prints before the \"trap
www.eeworm.com/read/139695/13139058
chgdb
#!/usr/bin/bash
DB_H=db.h
DB_OLD_H=db_old.h
TABLE=$1
TABLE_SQL=${TABLE}.sql
TABLE_H=$TABLE.h
TABLE_PC=${TABLE}_auto.pc
gendb $TABLE_SQL $TABLE_H $TABLE_PC
if [ $? != 0 ]
then
echo "gendb fail"
www.eeworm.com/read/133772/5901291
passwd
root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/bin/sh
bin:x:2:2:bin:/bin:/bin/sh
sys:x:3:3:sys:/dev:/bin/sh
sync:x:4:100:sync:/bin:/bin/sync
games:x:5:100:games:/usr/games:/bin/sh
www.eeworm.com/read/255775/12056560
sh dccp_backuplinux.sh
#! /bin/bash
SRC=$1
DEST=$2
cp $SRC/include/net/sock.h $DEST
cp $SRC/net/ipv4/af_inet.c $DEST
cp $SRC/include/linux/socket.h $DEST
cp $SRC/include/asm-i386/socket.h $DEST/asmumarchsocket.h
cp $SRC/ne
www.eeworm.com/read/222204/14701227
start_26
#!/bin/bash
mkdir -p /NextDVR3016
/bin/cp -f /mnt/yaffs/nvc1400.ko /NextDVR3016/
/bin/cp -f /mnt/yaffs/nvp3000.ko /NextDVR3016/
/bin/cp -f /mnt/yaffs/i2c.ko /NextDVR3016/
/bin/cp -f /mnt/yaffs/sram
www.eeworm.com/read/16793/691641
doc manifest.doc
#
# Master Manifest file for documentation-only distribution
#
doc d
MANIFEST.doc f
doc/article.ps f
doc/rose94.ps f
doc/bash.ps f
doc/bashbug.ps f
doc/builtins.ps f
doc/rbash.ps f
doc/bashref.ps f
d
www.eeworm.com/read/455269/1624813
sh multirate.sh
#!/bin/bash
rm -f multi.txt
perr=0.01
nn=20
vocoder=g729
#vocoder=g711
for nn2 in 2 4 6 8 10 12 14 16 18 20 ; do
echo "Simulating network VOIP with nn2 = ${nn2}" >> multi.txt
../../../ns main.t