The Comprehensive List of bash Reference Documentation and Examples

bash versions covered: 4.3 4.2 4.1 4.0 3.2.48 3.2 3.1 3.0.16 3.0 2.05 2.04 2.03 2.02.1 2.02 2.01.1 2.01 2.0 1.14.7
readline versions covered: 6.3 6.2 6.1 6.0 5.2 5.1 5.0.5 4.3 2.1 2.03 2.02 2.01

Page generated: 2014-03-09 00:28:57 -0500


Table Of Contents

Main bash Cookbook Wiki page

bash Cookbook Cover

bash Software Repositories and other Resources

bash Cookbook [ORA]: Buy at Amazon
[ O'Reilly: catalog page : errata : download examples : reviews ]
Slashdot Review (2008-08-13)
Carl's bash tweets: http://twitter.com/bashcookbook/
Chet's bash repository (Chet is the bash maintainer): ftp://ftp.cwru.edu/pub/bash/
Chet's current bash docs: http://cnswww.cns.cwru.edu/~chet/bash/
Chet's bash 'top' page: http://tiswww.case.edu/php/chet/bash/bashtop.html
The older GNU bash repository: http://ftp.gnu.org/gnu/bash/
BashRef (GNU Site) http://www.gnu.org/software/bash/manual/
GNU bash Announce mailing list and archive http://lists.gnu.org/mailman/listinfo/bash-announce
GNU bash bugs mailing list and archive http://lists.gnu.org/mailman/listinfo/bug-bash
GNU bash Usenet group (gnu.bash): Google Archive http://groups.google.com/group/gnu.bash/about
GNU bash bugs Usenet group (gnu.bash.bug): Google Archive http://groups.google.com/group/gnu.bash.bug/about
comp.unix.shell: Google Archive http://groups.google.com/group/comp.unix.shell/about
Bash Guide for Beginners http://www.tldp.org/LDP/Bash-Beginners-Guide/html/
Advanced Bash-Scripting Guide http://www.tldp.org/LDP/abs/html/index.html
Bash Prompt HOWTO http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO/index.html
Bashish is a theme enviroment for text terminals http://bashish.sourceforge.net/
BASH Programming - Introduction HOW-TO http://www.tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html
Learning the bash Shell, Third Edition [ORA] http://www.oreilly.com/catalog/bash3/
bash Quick Reference [ORA] http://www.oreilly.com/catalog/bashqr/
Classic Shell Scripting [ORA] http://www.oreilly.com/catalog/shellsrptg/
bash Programmable Completion (Ian Macdonald's giant library) http://freshmeat.net/projects/bashcompletion/
BASH with Debugger and Improved Debug Support and Error Handling http://bashdb.sourceforge.net/
USA Linux Users Group: Bashscripts.org http://bashscripts.org/
UNIX BASH scripting [bash, awk, sed Blog] http://unstableme.blogspot.com/
A handy 'printf' cheat sheet http://www.opengroup.org/onlinepubs/009695399/functions/printf.html
Learn the UNIX/Linux command line http://bashcurescancer.com/

bash

[Back to Top]  [Back to main bash Cookbook Wiki page]

bash File Description 4.3 4.2 4.1 4.0 3.2.48 3.2 3.1 3.0.16 3.0 2.05 2.04 2.03 2.02.1 2.02 2.01.1 2.01 2.0 1.14.7
ABOUT-NLS Notes on the Free Translation Project txt
txt
txt
txt
txt
txt
txt
txt
txt
                 
AUTHORS Master author manifest for bash txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
   
CHANGES DETAILED changes between versions txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
 
COMPAT Incompatibilities between versions of bash txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
 
COPYING GNU GENERAL PUBLIC LICENSE (various versions) txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
INSTALL Basic Installation txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
MANIFEST Master distribution manifest for bash txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
NEWS A terse description of the new features added to bash txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
NOTES Platform-Specific Configuration and Operation Notes txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
 
POSIX Bash POSIX Mode txt
txt
txt
txt
txt
txt
txt
txt
txt
                 
RBASH The Restricted Shell txt
txt
txt
txt
txt
txt
txt
txt
txt
                 
README bash high-level README txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
Y2K Y2K Notice txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
           
FAQ The Bash FAQ txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
 
INTRO A short introduction to bash txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
 
README bash Documentation README txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
 
aosa-bash The Architecture of Open Source Applications: Chapter 4: The Bourne-Again Shell pdf
                                 
article An article Chet wrote about bash for The Linux Journali ms
pdf
ps
txt
ms
pdf
ps
txt
ms
pdf
ps
txt
ms
pdf
ps
txt
ms
ms
pdf
ps
txt
ms
pdf
ps
txt
ms
ms
pdf
ps
txt
ms
ps
txt
ms
ps
txt
ms
ps
txt
ms
ms
ps
txt
ms
ms
ps
txt
ms
ps
txt
 
bash bash man page 0
1
html
pdf
ps
0
1
html
pdf
ps
0
1
html
pdf
ps
0
1
html
pdf
ps
1
0
1
html
pdf
ps
0
1
html
pdf
ps
1
0
1
html
pdf
ps
0
1
html
ps
0
1
html
ps
0
1
html
ps
1
0
1
html
ps
1
0
1
html
ps
0
1
html
ps
 
bashbug bashbug man page 0
1
ps
0
1
ps
0
1
ps
0
1
ps
1
0
1
ps
0
1
ps
1
0
1
ps
0
1
ps
0
1
ps
0
1
ps
1
0
1
ps
1
0
1
ps
0
1
ps
 
bashref The bash Reference Guide dvi
html
info
pdf
ps
texi
dvi
html
info
pdf
ps
texi
dvi
html
info
pdf
ps
texi
dvi
html
info
pdf
ps
texi
info
texi
dvi
html
info
pdf
ps
texi
dvi
html
info
pdf
ps
texi
info
texi
dvi
html
info
pdf
ps
texi
dvi
html
info
ps
texi
dvi
html
info
ps
texi
dvi
html
info
ps
texi
info
texi
dvi
html
info
ps
texi
info
texi
dvi
html
info
ps
texi
dvi
html
info
ps
texi
 
bashref_toc OLD bash Reference Manual table of contents                           html
  html
html
 
builtins The builtins man page, extracted from bash.1 0
1
ps
0
1
ps
0
1
ps
0
1
ps
1
0
1
ps
0
1
ps
1
0
1
ps
0
1
ps
0
1
ps
0
1
ps
1
0
1
ps
1
0
1
ps
0
1
ps
 
fdl GNU Free Documentation License texi
txt
texi
txt
texi
txt
texi
txt
texi
txt
texi
txt
texi
txt
texi
txt
texi
txt
                 
rbash bash restricted shell man page 0
1
ps
0
1
ps
0
1
ps
0
1
ps
1
0
1
ps
0
1
ps
1
0
1
ps
0
1
ps
0
1
ps
             
readline GNU readline man page                     0
3
ps
0
3
ps
3
0
3
ps
3
0
3
ps
0
3
ps
 
rose94 Article: Bash, the Bourne-Again Shell pdf
ps
pdf
ps
pdf
ps
pdf
ps
  pdf
ps
pdf
ps
  pdf
ps
ps
ps
             
version bash Version info texi
texi
texi
texi
texi
texi
texi
texi
texi
                 
bash File Description 4.3 4.2 4.1 4.0 3.2.48 3.2 3.1 3.0.16 3.0 2.05 2.04 2.03 2.02.1 2.02 2.01.1 2.01 2.0 1.14.7

examples/INDEX

[Back to Top]  [Back to main bash Cookbook Wiki page]

examples/INDEX File Description 4.3 4.2 4.1 4.0 3.2.48 3.2
INDEX An Index of bash examples (as subset of this) html
txt
html
txt
html
txt
html
txt
html
txt
html
txt
examples/INDEX File Description 4.3 4.2 4.1 4.0 3.2.48 3.2

examples/complete

[Back to Top]  [Back to main bash Cookbook Wiki page]

examples/complete File Description 4.3 4.2 4.1 4.0 3.2.48 3.2 3.1 3.0.16 3.0 2.05 2.04
bash_completion Programmable completion functions txt
txt
txt
txt
             
bashcc-1.0.1.tar ClearCase completions from Richard Smith gz
gz
gz
gz
gz
gz
gz
gz
gz
   
cdfunc cdfunc - example completion function for cd txt
                   
complete Various completion files   freebsd
gnu-longopt
ianmac
freebsd
gnu-longopt
ianmac
freebsd
gnu-longopt
ianmac
freebsd
gnu-longopt
ianmac
freebsd
gnu-longopt
ianmac
freebsd
gnu-longopt
ianmac
freebsd
gnu-longopt
ianmac
freebsd
gnu-longopt
ianmac
freebsd
ianmac
 
complete-examples Completion examples txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
complete2 Various completion files from Ian Macdonald   ianmac
ianmac
ianmac
ianmac
ianmac
ianmac
ianmac
ianmac
ianmac
 
examples/complete File Description 4.3 4.2 4.1 4.0 3.2.48 3.2 3.1 3.0.16 3.0 2.05 2.04

examples/functions

[Back to Top]  [Back to main bash Cookbook Wiki page]

examples/functions File Description 4.3 4.2 4.1 4.0 3.2.48 3.2 3.1 3.0.16 3.0 2.05 2.04 2.03 2.02.1 2.02 2.01.1 2.01 2.0 1.14.7
array-stuff Various array functions (ashift, array_sort, reverse). txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
             
array-to-string Convert an array to a string. txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
               
autoload An almost ksh-compatible 'autoload' (txt, v2: no lazy load; v3 with lazy load). txt
v2
v3
txt
v2
v3
txt
v2
v3
txt
v2
v3
txt
v2
v3
txt
v2
v3
txt
v2
v3
txt
v2
v3
txt
v2
v3
txt
v2
v3
txt
v2
v3
txt
v2
v3
txt
v2
txt
v2
txt
v2
txt
v2
txt
v2
txt
basename A replacement for basename(1). txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
basename2 Fast basename(1) and dirname(1) functions for BASH/SH.   txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
       
coproc Start, control, and end coprocesses.   bash
bash
bash
bash
bash
bash
bash
bash
                 
coshell Control shell coprocesses (see coprocess.bash).   README
bash
README
bash
README
bash
README
bash
README
bash
README
bash
README
bash
README
bash
                 
csh-compat A C-shell compatibility package. txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
dirfuncs Directory manipulation functions from the book 'The Korn Shell'.   txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
dirname A replacement for dirname(1). txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
emptydir Find out if a directory is empty.   txt
txt
txt
txt
txt
txt
txt
txt
txt
               
exitstat Display the exit status of processes. txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
external Like 'command' but FORCES use of external command. txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
fact Recursive factorial function. txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
fstty Front end to sync TERM changes to both stty(1) and readline 'bind'. txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
func Print out definitions for functions named by arguments. txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
gethtml Get a web page from a remote server (wget(1) in bash!).   txt
txt
txt
txt
txt
txt
txt
txt
txt
               
getoptx getopt function that parses long-named options.   bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
       
inetaddr Internet address conversion (inet2hex & hex2inet). txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
       
inpath Return zero if the argument is in the path and executable. txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
 
isnum Test user input on numeric or character value.   bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
       
isnum2 Test user input on numeric values, with floating point. txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
       
isvalidip Test user input for valid IP Addresses. txt
txt
txt
txt
txt
txt
txt
txt
txt
                 
jdate Julian date conversion.   bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
       
jj Look for running jobs.   bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
keep Try to keep some programs in the foreground and running.   txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
 
ksh-cd ksh-like 'cd': cd [-LP] [dir [change]]. txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
               
ksh-compat-test ksh-like arithmetic test replacements. txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
             
kshenv Functions and aliases to provide the beginnings of a ksh environment for bash. txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
login Replace the 'login' and 'newgrp' builtins in old Bourne shells. txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
 
lowercase Rename files to lower case.   txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
 
manpage Find and print a manual page.   txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
mhfold Print MH folders, useful only because folders(1) doesn't print mod date/times.   txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
 
notify Notify when jobs change status. bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
pathfuncs Path related functions (no_path, add_path, pre-path, del_path).   txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
       
recurse Recursive directory traverser.   txt
txt
txt
txt
txt
txt
txt
txt
txt
               
repeat2 A clone of C shell builtin 'repeat'.   txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
 
repeat3 A clone of C shell builtin 'repeat'.   txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
           
seq Generate a sequence from m to n, m defaults to 1. txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
 
seq2 Generate a sequence from m to n, m defaults to 1. txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
           
shcat Readline-based pager. txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
shcat2 Readline-based pagers. txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
       
sort-pos-params Sort the positional parameters. txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
               
substr A function to emulate the ancient ksh builtin. txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
substr2 A function to emulate the ancient ksh builtin. txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
term A shell function to set the terminal type interactively or not.   txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
whatis An implementation of the 10th Edition Unix sh builtin 'whatis(1)' command. txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
whence An almost-ksh compatible 'whence(1)' command. txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
which An emulation of 'which(1)' as it appears in FreeBSD. txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
           
xalias Convert csh alias commands to bash functions.   bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
   
xfind A 'find(1)' clone.   bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
             
examples/functions File Description 4.3 4.2 4.1 4.0 3.2.48 3.2 3.1 3.0.16 3.0 2.05 2.04 2.03 2.02.1 2.02 2.01.1 2.01 2.0 1.14.7

examples/loadables

[Back to Top]  [Back to main bash Cookbook Wiki page]

examples/loadables File Description 4.3 4.2 4.1 4.0 3.2.48 3.2 3.1 3.0.16 3.0 2.05 2.04 2.03 2.02.1 2.02 2.01.1 2.01 2.0
Makefile Simple makefile for the sample loadable builtins.                             txt
txt
txt
README README txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
basename Return non-directory portion of pathname. c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
cat cat(1) replacement with no options - the way cat was intended. c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
cut cut(1) replacement.   c
c
c
c
c
c
c
c
c
             
dirname Return directory portion of pathname. c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
finfo Print file info. c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
getconf POSIX.2 getconf utility.   c
h
c
h
c
h
c
h
c
h
c
h
c
h
c
h
c
c
c
c
c
c
c
c
head Copy first part of files. c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
hello Obligatory "Hello World" / sample loadable. c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
id POSIX.2 user identity. c
c
c
c
c
c
c
c
c
c
c
c
         
ln Make links. c
c
c
c
c
c
c
c
c
c
c
c
         
logname Print login name of current user. c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
mkdir Make directories. c
c
c
c
c
c
c
c
c
c
c
c
         
mypid Add $MYPID as a shell builtin c
c
c
c
                         
necho echo without options or argument interpretation. c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
pathchk Check pathnames for validity and portability. c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
print Loadable ksh-93 style print builtin. c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
printenv Minimal builtin clone of BSD printenv(1). c
c
c
c
c
c
c
c
c
c
c
c
         
printf Old printf                             c
c
c
push Anyone remember TOPS-20? c
c
c
c
c
c
c
c
c
c
             
pushd Old pushd                         c
c
c
c
c
realpath Canonicalize pathnames, resolving symlinks. c
c
c
c
c
c
c
c
c
c
             
rmdir Remove directory. c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
sleep sleep for fractions of a second. c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
sprintf Old sprintf                   c
c
c
c
c
c
c
c
strftime Loadable builtin interface to strftime(3). c
c
c
c
c
c
c
c
c
               
sync Sync the disks by forcing pending filesystem writes to complete. c
c
c
c
c
c
c
c
c
c
c
c
         
tee Duplicate standard input. c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
template Example template for loadable builtin. c
c
c
c
c
c
c
c
c
c
c
c
         
truefalse True and false builtins. c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
tty Return terminal name. c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
uname Print system information. c
c
c
c
c
c
c
c
c
c
c
c
         
unlink Remove a directory entry. c
c
c
c
c
c
c
c
c
c
c
c
         
whoami Print out username of current user. c
c
c
c
c
c
c
c
c
c
c
c
         
examples/loadables File Description 4.3 4.2 4.1 4.0 3.2.48 3.2 3.1 3.0.16 3.0 2.05 2.04 2.03 2.02.1 2.02 2.01.1 2.01 2.0

examples/loadables/perl

[Back to Top]  [Back to main bash Cookbook Wiki page]

examples/loadables/perl File Description 4.3 4.2 4.1 4.0 3.2.48 3.2 3.1 3.0.16 3.0 2.05 2.04
README Illustrates how to build a perl interpreter into bash txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
bperl perl builtin c
c
c
c
c
c
c
c
c
c
c
iperl The Perl interpreter c
c
c
c
c
c
c
c
c
c
c
examples/loadables/perl File Description 4.3 4.2 4.1 4.0 3.2.48 3.2 3.1 3.0.16 3.0 2.05 2.04

examples/misc

[Back to Top]  [Back to main bash Cookbook Wiki page]

examples/misc File Description 4.3 4.2 4.1 4.0 3.2.48 3.2 3.1 3.0.16 3.0 2.05 2.04 2.03 2.02.1 2.02 2.01.1 2.01 2.0
aliasconv Convert csh aliases to bash aliases and functions. bash
sh
bash
sh
bash
sh
bash
sh
bash
sh
bash
sh
bash
sh
bash
sh
bash
sh
bash
sh
bash
sh
bash
sh
bash
sh
bash
sh
bash
sh
bash
sh
bash
sh
cshtobash Convert csh aliases, environment variables, and variables to bash equivalents. txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
suncmd SunView TERMCAP string.   termcap
termcap
termcap
termcap
termcap
termcap
termcap
termcap
termcap
termcap
termcap
termcap
termcap
termcap
termcap
termcap
examples/misc File Description 4.3 4.2 4.1 4.0 3.2.48 3.2 3.1 3.0.16 3.0 2.05 2.04 2.03 2.02.1 2.02 2.01.1 2.01 2.0

examples/obashdb

[Back to Top]  [Back to main bash Cookbook Wiki page]

examples/obashdb File Description 4.2 4.1 4.0 3.2.48 3.2 3.1 3.0.16 3.0 2.05 2.04 2.03 2.02.1 2.02 2.01.1 2.01 2.0
PERMISSION Permission to use and distribute txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
README Deprecated sample implementation of a bash debugger (see http://bashdb.sourceforge.net/ instead) txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
bashdb Deprecated bashdb - Bash shell debugger (see http://bashdb.sourceforge.net/ instead) txt
el
txt
el
txt
el
txt
el
txt
fns
pre
txt
el
txt
fns
pre
txt
el
txt
fns
pre
txt
el
txt
fns
pre
txt
el
txt
fns
pre
txt
fns
pre
txt
fns
pre
txt
fns
pre
txt
fns
pre
txt
fns
pre
txt
fns
pre
txt
fns
pre
txt
fns
pre
examples/obashdb File Description 4.2 4.1 4.0 3.2.48 3.2 3.1 3.0.16 3.0 2.05 2.04 2.03 2.02.1 2.02 2.01.1 2.01 2.0

examples/scripts

[Back to Top]  [Back to main bash Cookbook Wiki page]

examples/scripts File Description 4.3 4.2 4.1 4.0 3.2.48 3.2 3.1 3.0.16 3.0 2.05 2.04 2.03 2.02.1 2.02 2.01.1 2.01 2.0 1.14.7
adventure Text adventure game in bash!   sh
sh
sh
sh
sh
sh
sh
sh
sh
sh
sh
sh
sh
sh
sh
sh
sh
bash-hexdump hexdump(1) in bash   sh
                               
bcsh Bourne shell cshell-emulator.   sh
sh
sh
sh
sh
sh
sh
sh
sh
sh
sh
sh
sh
sh
sh
sh
sh
cat Readline-based pager. sh
sh
sh
sh
sh
sh
sh
sh
sh
sh
               
center Center - center a group of lines. txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
             
dd-ex Line editor using only /bin/sh, /bin/dd and /bin/rm.   sh
sh
sh
sh
sh
sh
sh
sh
sh
               
fixfiles Recurse a tree and fix files containing various "bad" chars.   bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
       
hanoi The inevitable Towers of Hanoi in bash.   bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
       
inpath Search $PATH for a file the same name as $1; return TRUE if found. txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
 
krand Produces a random number within integer limits.   bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
       
line-input Line input routine for GNU Bourne-Again Shell plus terminal-control primitives.   bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
             
nohup bash version of 'nohup' command.   bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
 
precedence Test relative precedences for '&&' and '||' operators.   txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
randomcard Print a random card from a card deck.   bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
       
scrollbar Display scrolling text.   txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
 
scrollbar2 Display scrolling text.   txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
       
self-repro A self-reproducing script (careful!)   txt
txt
txt
txt
txt
txt
txt
txt
                 
showperm Convert ls(1) symbolic permissions into octal mode.   bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
       
shprompt Display a prompt and get an answer satisfying certain criteria. txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
spin Display a 'spinning wheel' to show progress. bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
   
timeout Give rsh(1) a shorter timeout.   txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
       
timeout2 Execute a given command with a timeout.   txt
txt
txt
                           
timeout3 Execute a given command with a timeout.   txt
txt
txt
                           
vtree2 Display a tree printout of dir in 1k blocks.   txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
 
vtree3 Display a graphical tree printout of dir.   txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
   
vtree3a Display a graphical tree printout of dir.   txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
             
websrv A web server in bash!   sh
sh
sh
sh
sh
sh
sh
sh
sh
sh
             
xterm_title Print the contents of the xterm title bar. txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
             
zprintf Emulate printf (obsolete since it's now a bash builtin). txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
 
examples/scripts File Description 4.3 4.2 4.1 4.0 3.2.48 3.2 3.1 3.0.16 3.0 2.05 2.04 2.03 2.02.1 2.02 2.01.1 2.01 2.0 1.14.7

examples/scripts.noah

[Back to Top]  [Back to main bash Cookbook Wiki page]

examples/scripts.noah File Description 4.2 4.1 4.0 3.2.48 3.2 3.1 3.0.16 3.0 2.05 2.04 2.03 2.02.1 2.02 2.01.1 2.01 2.0
PERMISSION Permissions to use the scripts in this directory. txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
README README txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
aref Pseudo-arrays and substring indexing examples. bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash.sub Library functions used by require.bash. bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash_version A function to slice up $BASH_VERSION. bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
meta Enable and disable eight-bit readline input. bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
mktmp Make a temporary file with a unique name. bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
number A fun hack to translate numerals into English. bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
prompt A way to set PS1 to some predefined strings. bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
remap_keys A front end to 'bind' to redo readline bindings. bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
require Lisp-like require/provide library functions for bash. bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
send_mail Replacement SMTP client written in bash. bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
shcat Bash replacement for 'cat(1)'. bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
source Replacement for source that uses current directory. bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
string The string(3) functions at the shell level. bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
stty Front-end to stty(1) that changes readline bindings too. bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
y_or_n_p Prompt for a yes/no/quit answer. bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
examples/scripts.noah File Description 4.2 4.1 4.0 3.2.48 3.2 3.1 3.0.16 3.0 2.05 2.04 2.03 2.02.1 2.02 2.01.1 2.01 2.0

examples/scripts.v2

[Back to Top]  [Back to main bash Cookbook Wiki page]

examples/scripts.v2 File Description 4.2 4.1 4.0 3.2.48 3.2 3.1 3.0.16 3.0 2.05 2.04 2.03 2.02.1 2.02 2.01.1 2.01 2.0
PERMISSION Permissions to use the scripts in this directory. txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
README README txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
arc2tarz Convert an "arc" archive to a compressed tar archive. txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
bashrand Random number generator with upper and lower bounds and optional seed. txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
cal2day Convert a day number to a name. bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
     
cdhist cd replacement with a directory stack added. bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
bash
corename Tell what produced a core file. txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
fman Fast man(1) replacement. txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
frcp Copy files using ftp(1) but with rcp-type command line syntax. txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
lowercase Change filenames to lower case. txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
ncp A nicer front end for cp(1) (has -i, etc.). txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
newext Change the extension of a group of files. txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
nmv A nicer front end for mv(1) (has -i, etc.). txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
pages Print specified pages from files. txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
pf A pager front end that handles compressed files. txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
pmtop Poor man's 'top(1)' for SunOS 4.x and BSD/OS. txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
ren Rename files by changing parts of filenames that match a pattern. txt
txt
txt
txt
txt
txt
txt
txt
               
rename Change the names of files that match a pattern. txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
repeat Execute a command multiple times. txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
shprof Line profiler for bash scripts. txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
untar Unarchive a (possibly compressed) tarfile into a directory. txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
uudec Carefully uudecode(1) multiple files. txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
uuenc uuencode(1) multiple files. txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
vtree Print a visual display of a directory tree. txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
where Show where commands that match a pattern are. txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
examples/scripts.v2 File Description 4.2 4.1 4.0 3.2.48 3.2 3.1 3.0.16 3.0 2.05 2.04 2.03 2.02.1 2.02 2.01.1 2.01 2.0

examples/startup-files

[Back to Top]  [Back to main bash Cookbook Wiki page]

examples/startup-files File Description 4.3 4.2 4.1 4.0 3.2.48 3.2 3.1 3.0.16 3.0 2.05 2.04 2.03 2.02.1 2.02 2.01.1 2.01 2.0 1.14.7
Bash_aliases Some useful aliases (Fox). txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
Bash_profile Sample startup file for bash login shells (Fox). txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
Bashrc Sample Bourne Again SHell init file (Fox). bfox
bfox
bfox
bfox
bfox
bfox
bfox
bfox
bfox
bfox
bfox
bfox
bfox
bfox
txt
txt
txt
txt
README README txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
 
bash-profile Sample startup file for bash login shells (Ramey). txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
bashrc Sample Bourne Again SHell init file (Ramey). txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
examples/startup-files File Description 4.3 4.2 4.1 4.0 3.2.48 3.2 3.1 3.0.16 3.0 2.05 2.04 2.03 2.02.1 2.02 2.01.1 2.01 2.0 1.14.7

examples/startup-files/apple

[Back to Top]  [Back to main bash Cookbook Wiki page]

examples/startup-files/apple File Description 4.2 4.1 4.0 3.2.48 3.2 3.1 3.0.16 3.0 2.05 2.04
README README txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
aliases Sample aliases for Mac OS X. txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
bash Sample User preferences file. defaults
defaults
defaults
defaults
defaults
defaults
defaults
defaults
defaults
defaults
environment Sample Bourne Again Shell environment file. txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
login Sample login wrapper. txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
logout Sample logout wrapper. txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
rc Sample Bourne Again Shell config file. txt
txt
txt
txt
txt
txt
txt
txt
txt
txt
examples/startup-files/apple File Description 4.2 4.1 4.0 3.2.48 3.2 3.1 3.0.16 3.0 2.05 2.04

readline

[Back to Top]  [Back to main bash Cookbook Wiki page]

readline File Description 6.3 6.2 6.1 6.0 5.2 5.1 5.0.5 4.3 2.1 2.03 2.02 2.01
CHANGELOG Readline-specific changelog txt
txt
txt
txt
txt
txt
txt
txt
       
CHANGES DETAILED changes between versions txt
txt
txt
txt
txt
txt
txt
txt
       
COPYING GNU GENERAL PUBLIC LICENSE (various versions) txt
txt
txt
txt
txt
txt
txt
txt
       
INSTALL Basic Installation txt
txt
txt
txt
txt
txt
txt
txt
       
MANIFEST Master distribution manifest for bash txt
txt
txt
txt
txt
txt
txt
txt
       
NEWS A terse description of the new features added to bash txt
txt
txt
txt
txt
txt
txt
         
README bash high-level README txt
txt
txt
txt
txt
txt
txt
txt
       
USAGE A note on legal use of Readline through a shared-library linking mechanism txt
txt
txt
txt
txt
txt
txt
txt
       
fdl GNU Free Documentation License texi
texi
texi
texi
texi
texi
texi
         
hist Readline History (seems to be only RL4.3)               texinfo
       
history GNU History Library man page 0
3
dvi
html
info
pdf
ps
texi
0
3
dvi
html
info
pdf
ps
texi
0
3
dvi
html
info
pdf
ps
texi
0
3
dvi
html
info
pdf
ps
texi
0
3
dvi
html
info
pdf
ps
texi
0
3
dvi
html
info
pdf
ps
texi
0
3
dvi
html
info
pdf
ps
texi
0
3
dvi
html
info
ps
dvi
html
info
ps
dvi
html
info
ps
dvi
html
info
ps
dvi
html
info
ps
history_3 GNU History Library man page ps
ps
ps
ps
ps
ps
ps
ps
       
history_toc OLD GNU History Library                 html
  html
html
hstech User interface to the GNU History library documentation texi
texi
texi
texi
texi
texi
texi
texinfo
       
hsuser User interface to the GNU History library documentation texi
texi
texi
texi
texi
texi
texi
texinfo
       
manvers Manuscript version? (seems to be only RL4.3)               texinfo
       
readline GNU readline man page 0
3
dvi
html
info
pdf
ps
0
3
dvi
html
info
pdf
ps
0
3
dvi
html
info
pdf
ps
0
3
dvi
html
info
pdf
ps
0
3
dvi
html
info
pdf
ps
0
3
dvi
html
info
pdf
ps
0
3
dvi
html
info
pdf
ps
0
3
dvi
html
info
ps
dvi
html
info
ps
dvi
html
info
ps
dvi
html
info
ps
dvi
html
info
ps
readline_3 Readline docs ps
ps
ps
ps
ps
ps
ps
ps
       
readline_toc OLD GNU Readline Library table of contents                 html
  html
html
rlman The GNU readline library API texi
texi
texi
texi
texi
texi
texi
texinfo
       
rltech Programming with GNU Readline texi
texi
texi
texi
texi
texi
texi
texinfo
       
rluser Command Line Editing texi
texi
texi
texi
texi
texi
texi
texinfo
       
rluserman GNU Readline Library dvi
html
info
pdf
ps
texi
dvi
html
info
pdf
ps
texi
dvi
html
info
pdf
ps
texi
dvi
html
info
pdf
ps
texi
dvi
html
info
pdf
ps
texi
dvi
html
info
pdf
ps
texi
dvi
html
info
pdf
ps
texi
dvi
html
info
ps
texinfo
       
version bash Version info texi
texi
texi
texi
texi
texi
texi
         
readline File Description 6.3 6.2 6.1 6.0 5.2 5.1 5.0.5 4.3 2.1 2.03 2.02 2.01

The Comprehensive List of bash Reference Documentation and Examples

For questions or corrections please contact: jp {at} jpsdomain (dot) org

Page generated: 2014-03-09 00:28:57 -0500