代码搜索:bash
找到约 5,321 项符合「bash」的源代码
代码结果 5,321
www.eeworm.com/read/339483/12231604
sh rot13a.sh
#!/bin/bash
# rot13a.sh: Same as "rot13.sh" script, but writes output to "secure" file.
# Usage: ./rot13a.sh filename
# or ./rot13a.sh <filename
# or ./rot13a.sh and supply keyboard input
www.eeworm.com/read/252193/12294601
sh string.functions.sh
#!/bin/bash
# function strcat
# Usage: strcat s1 s2
function strcat ()
{
local s1_val s2_val
s1_val=${!1} # indirect variable expansion
s2_val=${!2}
www.eeworm.com/read/252193/12294611
sh datediff.sh
#!/bin/bash
# Usage: ./days-diff.sh [M]M/[D]D/YYYY [M]M/[D]D/YYYY
ARGS=2 # Two command line parameters expected.
E_PARAM_ERR=65 # Param error.
REFYR=1600 # Referen
www.eeworm.com/read/123658/14617779
sh m88k-move.sh
#!/bin/sh
#
# If your shell doesn't support functions (true for some BSD users),
# you might try using GNU's bash.
#
#ident "@(#) m88k-move.sh 1-Sep-92"
#
# This file provided by Data General, Februar
www.eeworm.com/read/16793/690868
gethtml
#
# get_html -- get a web page from a remote server
#
# Original Author: Jeff Korn
# Modified for bash by Chet Ramey
#
# Example: get_html cnswww.cns.cwru.edu
www.eeworm.com/read/16793/690941
pf
#! /bin/bash
#
# original from:
#
# @(#) p.ksh 1.1 93/11/09
# p: page compressed & plain files in the order given
# 92/01/23 john h. dubois iii (john@armory.com)
# 92/02/14 changed incorrect zpack to
www.eeworm.com/read/16793/690945
rename
#! /bin/bash
#
# original from:
# @(#) rename.ksh 1.1 94/05/10
# 90/06/01 John DuBois (spcecdt@armory.com)
# 91/02/25 Improved help info
# 92/06/07 remove quotes from around shell pattern as required
www.eeworm.com/read/16793/691414
sub func4.sub
# test FUNCNEST functionality -- bash-4.2
FUNCNEST=100
foo()
{
(( f++ ))
if (( f > 200 )); then
return 7
fi
foo
}
f=0
foo
echo $?
echo after: f = $f
f=0
foo
echo $?
echo after: f = $f
f=0
FU
www.eeworm.com/read/35675/1059594
idcheck
#!/bin/bash
# Scriptname: idcheck
# purpose:check user id to see if user is root.
# Only root has a uid of 0.
# Format for id output:uid=9496(ellie) gid=40 groups=40
# root's uid=0
id=`id | gawk -F'
www.eeworm.com/read/470720/1450293
c 991112-1.c
/* This code was miscompiled at -O3 on x86.
Reported by Jim Meyering; distilled from bash. */
int rl_show_char (int c) { return 0; }
int rl_character_len (int c, int pos)
{
return isprint (c)