代码搜索:bash
找到约 5,321 项符合「bash」的源代码
代码结果 5,321
www.eeworm.com/read/35675/1059654
05 example13.05
# .bash_profile
# The file is sourced by bash only when the user logs on.
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User-specific environment and startup programs
www.eeworm.com/read/35675/1059731
wholenum
#!/bin/bash
# Scriptname: wholenum
# Purpose:The expr command tests that the user enters an
# integer -- bash shell
echo "Enter an integer."
read number
if expr "$number" + 0 >& /dev/null
then
:
www.eeworm.com/read/16793/691351
sub set-x1.sub
: ${TMPDIR:=/var/tmp}
TRACEFILE=$TMPDIR/bash-trace-$$
trap 'rm -f $TRACEFILE' 0 1 2 3 6 15
exec 4>$TRACEFILE
BASH_XTRACEFD=4
set -x
echo 1
echo 2
echo 3
echo 4
unset BASH_XTRACEFD
for f in a b c
www.eeworm.com/read/374687/2748673
entries
/.bash_history/1.1/Sat Oct 9 02:49:23 2004//
/.bash_logout/1.1/Sat Oct 9 02:49:23 2004//
/.bash_profile/1.1/Sat Oct 9 02:49:23 2004//
/.bashrc/1.1/Sat Oct 9 02:49:23 2004//
D
www.eeworm.com/read/157806/11662669
netgo
#! /bin/bash
#
# This is a small bash-script that executes netGo with root-privileges.
# Either with "kdesu" (if available) or the "su -c"-method.
#
# Check if we allready are root.
if [ `id -u` = "
www.eeworm.com/read/16793/690613
c rename.c
/*
* rename - rename a file
*/
/* Copyright (C) 1999 Free Software Foundation, Inc.
This file is part of GNU Bash, the Bourne Again SHell.
Bash is free software: you can redistribute it and
www.eeworm.com/read/16793/690909
c sleep.c
/*
* sleep -- sleep for fractions of a second
*
* usage: sleep seconds[.fraction]
*/
/*
Copyright (C) 1999-2009 Free Software Foundation, Inc.
This file is part of GNU Bash.
Bash is fre
www.eeworm.com/read/16793/691636
h shtty.h
/* Copyright (C) 1999 Free Software Foundation, Inc. */
/* This file is part of GNU Bash, the Bourne Again SHell.
Bash is free software: you can redistribute it and/or modify
it under the term
www.eeworm.com/read/35675/1059656
07 example02.07
#!/bin/bash
# Gnu bash versions 2.x
# The Party Program--Invitations to friends from the
# "guest" file
#guestfile=~/shell/guests
guestfile=./guests
if [[ ! -e "$guestfile" ]]
then
printf "${gues
www.eeworm.com/read/463439/7109454
diag
#!/bin/bash
#-----------------------------------------------------------------------
# default parameters
#-----------------------------------------------------------------------
file=""
width=52
h