代码搜索:bash
找到约 5,321 项符合「bash」的源代码
代码结果 5,321
www.eeworm.com/read/458682/7291419
sh tohtml.sh
#!/bin/bash
# tohtml.sh
# Convert a text file to HTML format.
# Author: Mendel Cooper
# License: GPL3
# Usage: sh tohtml.sh < textfile > htmlfile
# Script can easily be modified to accept source and
www.eeworm.com/read/458682/7291427
sh line-number.sh
#!/bin/bash
# line-number.sh
# This script echoes itself twice to stdout with its lines numbered.
# 'nl' sees this as line 4 since it does not number blank lines.
# 'cat -n' sees the above line as n
www.eeworm.com/read/458682/7291432
sh logevents.sh
#!/bin/bash
# logevents.sh
# Author: Stephane Chazelas.
# Used in ABS Guide with permission.
# Event logging to a file.
# Must be run as root (for write access in /var/log).
ROOT_UID=0 # Only us
www.eeworm.com/read/458682/7291444
sh poem.sh
#!/bin/bash
# poem.sh: Pretty-prints one of the document author's favorite poems.
# Lines of the poem (single stanza).
Line[1]="I do not know which to prefer,"
Line[2]="The beauty of inflections"
Lin
www.eeworm.com/read/458682/7291448
sh grp.sh
#!/bin/bash
# grp.sh: Very crude reimplementation of 'grep'.
E_BADARGS=65
if [ -z "$1" ] # Check for argument to script.
then
echo "Usage: `basename $0` pattern"
exit $E_BADARGS
fi
echo
f
www.eeworm.com/read/458682/7291462
sh alt-bc.sh
#!/bin/bash
# Invoking 'bc' using command substitution
# in combination with a 'here document'.
var1=`bc
www.eeworm.com/read/458682/7291489
sh find-splitpara.sh
#!/bin/bash
# find-splitpara.sh
# Finds split paragraphs in a text file,
#+ and tags the line numbers.
ARGCOUNT=1 # Expect one arg.
E_WRONGARGS=65
file="$1" # Target filename.
lineno=
www.eeworm.com/read/458682/7291511
sh secret-pw.sh
#!/bin/bash
# secret-pw.sh: secret password
echo
echo -n "Enter password "
read passwd
echo "password is $passwd"
echo -n "If someone had been looking over your shoulder, "
echo "your password would