代码搜索:bash

找到约 5,321 项符合「bash」的源代码

代码结果 5,321
www.eeworm.com/read/100040/6275817

init samba.init

#!/bin/bash # # description: Starts and stops the Samba smbd and nmbd daemons # used to provide SMB network services. NAME_S=smbd DAEMON_S=/usr/sbin/$NAME_S NAME_N=nmbd DAEMON_N=/usr/sbin/$NAM
www.eeworm.com/read/404558/11482748

until_who

#!/bin/bash #until_who IS_ROOT=`who | grep root` until [ "$IS_ROOT" ] do sleep 5 IS_ROOT=`who | grep root` done echo "watch root in">>/tmp/root.log echo "date is: " `date` >>/tmp/root.log echo "******
www.eeworm.com/read/339483/12230430

sh am-i-root.sh

#!/bin/bash # am-i-root.sh: Am I root or not? ROOT_UID=0 # Root has $UID 0. if [ "$UID" -eq "$ROOT_UID" ] # Will the real "root" please stand up? then echo "You are root." else echo "You ar
www.eeworm.com/read/339483/12230695

sh rot13.sh

#!/bin/bash # rot13.sh: Classic rot13 algorithm, # encryption that might fool a 3-year old. # Usage: ./rot13.sh filename # or ./rot13.sh <filename # or ./rot13.sh and supply keyb
www.eeworm.com/read/339483/12230750

sh what.sh

#!/bin/bash # What are all those mysterious binaries in /usr/X11R6/bin? DIRECTORY="/usr/X11R6/bin" # Try also "/bin", "/usr/bin", "/usr/local/bin", etc. for file in $DIRECTORY/* do whatis `basena
www.eeworm.com/read/339483/12231807

sh wf.sh

#!/bin/bash # wf.sh: Crude word frequency analysis on a text file. # This is a more efficient version of the "wf2.sh" script. # Check for input file on command line. ARGS=1 E_BADARGS=65 E_NOFILE=66
www.eeworm.com/read/130385/14196133

testscript

#!/bin/bash i=1 while [ $i -lt 10 ]; do ./gen j=1 while [ $j -lt 50 ]; do ./ibe key_from_master_shares ben share echo "Hello, World!" | ./ibe encrypt ben | ./ibe fixed_password_decrypt b
www.eeworm.com/read/130108/14208277

makedev

#!/bin/bash function makedev () { for dev in 0 1 2 3; do echo "/dev/$1$dev: char 81 $[ $2 + $dev ]" rm -f /dev/$1$dev mknod /dev/$1$dev c 81 $[ $2 + $dev ] chmod 666 /dev/$1$dev d
www.eeworm.com/read/231996/14211983

makerelease

#!/bin/bash # perform sanity checks, make packages VER=`grep AC_INIT configure.ac | sed 's/.*\[\([0-9]*\.[0-9]*\.[0-9]*\)\].*/\1/'` echo making pbc-$VER GREPVER=${VER//\./\\.} if [[ $1 == "test" ]]; t
www.eeworm.com/read/124343/14571065

html 466.html

linux知识宝库/shell/bash