代码搜索:bash
找到约 5,321 项符合「bash」的源代码
代码结果 5,321
www.eeworm.com/read/458682/7291686
sh reply.sh
#!/bin/bash
# reply.sh
# REPLY is the default value for a 'read' command.
echo
echo -n "What is your favorite vegetable? "
read
echo "Your favorite vegetable is $REPLY."
# REPLY holds the value of
www.eeworm.com/read/458682/7291740
sh ex22.sh
#!/bin/bash
# Listing the planets.
for planet in Mercury Venus Earth Mars Jupiter Saturn Uranus Neptune Pluto
do
echo $planet # Each planet on a separate line.
done
echo
for planet in "Mercury V
www.eeworm.com/read/458682/7291743
sh userlist.sh
#!/bin/bash
# userlist.sh
PASSWORD_FILE=/etc/passwd
n=1 # User number
for name in $(awk 'BEGIN{FS=":"}{print $1}' < "$PASSWORD_FILE" )
# Field separator = : ^^^^^^
# Print first field
www.eeworm.com/read/458682/7291768
sh ex31.sh
#!/bin/bash
PS3='Choose your favorite vegetable: ' # Sets the prompt string.
echo
select vegetable in "beans" "carrots" "potatoes" "onions" "rutabagas"
do
echo
echo "Your favorite veggie is $ve
www.eeworm.com/read/458682/7291781
sh pb.sh
#!/bin/bash
# pb.sh: phone book
# Written by Rick Boivie, and used with permission.
# Modifications by ABS Guide author.
MINARGS=1 # Script needs at least one argument.
DATAFILE=./phonebook
www.eeworm.com/read/458682/7291784
sh kill-process.sh
#!/bin/bash
# kill-process.sh
NOPROCESS=2
process=xxxyyyzzz # Use nonexistent process.
# For demo purposes only...
# ... don't want to actually kill any actual process with this script.
#
# If, for
www.eeworm.com/read/457991/7314536
lrk-extract
#!/bin/bash
#
# Linux Rom Kitchen Extract script
#
# Copyright (C) 2007-2008 Pau Oliva Fora -
#
# This program is free software; you can redistribute it and/or modify it
# under t
www.eeworm.com/read/457991/7314546
lrk-preload
#!/bin/bash
#
# Linux Rom Kitchen dependancy & sanity check script
#
# Copyright (C) 2007-2008 Pau Oliva Fora -
#
# This program is free software; you can redistribute it and/or mo
www.eeworm.com/read/438832/7725375
sh ex30.sh
#!/bin/bash
# 未经处理的地址资料
clear # 清屏.
echo " Contact List"
echo " ------- ----"
echo "Choose one of the following persons:"
echo
echo "[E]vans, Roland"
echo "[J]ones, Mildred"
echo
www.eeworm.com/read/438832/7725747
lib hash.lib
# Hash:
# Hash function library
# Author: Mariusz Gniazdowski <mgniazd-at-gmail.com>
# Date: 2005-04-07
# Functions making emulating hashes in Bash a little less painful.
# Limitations:
#