代码搜索:bash
找到约 5,321 项符合「bash」的源代码
代码结果 5,321
www.eeworm.com/read/239418/4601297
init sshd.init
#!/bin/bash
#
# Init file for OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: OpenSSH server daemon
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key
www.eeworm.com/read/239418/4601300
old sshd.init.old
#!/bin/bash
#
# Init file for OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: OpenSSH server daemon
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key
www.eeworm.com/read/239312/4602409
tellme
#!/bin/bash
# Scriptname: tellme
# Using the old-style test command
echo -n "How old are you? "
read age
if [ $age -lt 0 -o $age -gt 120 ]
then
echo "Welcome to our planet! "
exit 1
f
www.eeworm.com/read/239312/4602410
opts4
#!/bin/bash
# Program: opts4
# Using getopts -- Fourth try --
while getopts xyz: arguments 2>/dev/null
do
case $arguments in
x) echo "you entered -x as an option .";;
y) echo "you entered -y as an
www.eeworm.com/read/239312/4602411
opts1
#!/bin/bash
# Program: opts1
# Using getopts -- First try --
while getopts xy options
do
case $options in
x) echo "you entered -x as an option";;
y) echo "you entered -y as an option";;
esac
done
www.eeworm.com/read/239312/4602445
num
#!/bin/bash
# Scriptname: num
num=0 # Initialize num
while (( $num < 10 )) # or while [ num -lt 10 ]
do
echo -n "$num "
let num+=1 # Increment num
done
echo -e "\nAfter loop exits
www.eeworm.com/read/233448/4690439
run_doxygen
#!/bin/bash
# Runs doxygen and massages the output files.
# Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
#
# Synopsis: run_doxygen --mode=[user|maint|man] --host_alias=
www.eeworm.com/read/229403/4756344
profile
# ~/.bashrc: executed by bash(1) for non-login interactive shells.
export PATH=\
/bin:\
/sbin:\
/usr/bin:\
/usr/sbin:\
/usr/bin/X11:\
/usr/local/bin
# If running interactively, then:
if [ "$PS1" ];
www.eeworm.com/read/229403/4756351
bashrc .bashrc
# ~/.bashrc: executed by bash(1) for non-login interactive shells.
export PATH=\
/bin:\
/sbin:\
/usr/bin:\
/usr/sbin:\
/usr/bin/X11:\
/usr/local/bin
# If running interactively, then:
if [ "$PS1" ];
www.eeworm.com/read/229403/4756391
profile
# ~/.bashrc: executed by bash(1) for non-login interactive shells.
export PATH=\
/bin:\
/sbin:\
/usr/bin:\
/usr/sbin:\
/usr/bin/X11:\
/usr/local/bin
# If running interactively, then:
if [ "$PS1" ];