From 011c1d1c0766c65517ebd495465c99e86edb63ec Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Mon, 11 Oct 2010 14:49:26 -0700 Subject: Update to bash-4.1 --- examples/INDEX.html | 824 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 824 insertions(+) create mode 100644 examples/INDEX.html (limited to 'examples/INDEX.html') diff --git a/examples/INDEX.html b/examples/INDEX.html new file mode 100644 index 0000000..5e8cdc6 --- /dev/null +++ b/examples/INDEX.html @@ -0,0 +1,824 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
PathDescriptionX-Ref
./obashdbDeprecated sample implementation of a bash debugger
./completeShell completion code
./functionsExample functions
./functions/array-stuffVarious array functions (ashift, array_sort, reverse).
./functions/array-to-stringConvert an array to a string.
./functions/autoloadAn almost ksh-compatible 'autoload' (no lazy load).ksh
./functions/autoload.v2An almost ksh-compatible 'autoload' (no lazy load).ksh
./functions/autoload.v3A more ksh-compatible 'autoload' (with lazy load).ksh
./functions/basenameA replacement for basename(1).basename
./functions/basename2Fast basename(1) and dirname(1) functions for BASH/SH.basename, dirname
./functions/coproc.bashStart, control, and end coprocesses.
./functions/coshell.bashControl shell coprocesses (see coprocess.bash).
./functions/coshell.READMEREADME for coshell and coproc.
./functions/csh-compatA C-shell compatibility package.csh
./functions/dirfuncsDirectory manipulation functions from the book 'The Korn Shell'.
./functions/dirnameA replacement for dirname(1).dirname
./functions/emptydirFind out if a directory is empty.
./functions/exitstatDisplay the exit status of processes.
./functions/externalLike 'command' but FORCES use of external command.
./functions/factRecursive factorial function.
./functions/fsttyFront end to sync TERM changes to both stty(1) and readline 'bind'.stty.bash
./functions/funcPrint out definitions for functions named by arguments.
./functions/gethtmlGet a web page from a remote server (wget(1) in bash!).
./functions/getoptx.bashgetopt function that parses long-named options.
./functions/inetaddrInternet address conversion (inet2hex & hex2inet).
./functions/inpathReturn zero if the argument is in the path and executable.inpath
./functions/isnum.bashTest user input on numeric or character value.
./functions/isnum2Test user input on numeric values, with floating point.
./functions/isvalidipTest user input for valid IP Addresses.
./functions/jdate.bashJulian date conversion.
./functions/jj.bashLook for running jobs.
./functions/keepTry to keep some programs in the forground and running.
./functions/ksh-cdksh-like 'cd': cd [-LP] [dir [change]].ksh
./functions/ksh-compat-testksh-like arithmetic test replacements.ksh
./functions/kshenvFunctions and aliases to provide the beginnings of a ksh environment for bash.ksh
./functions/loginReplace the 'login' and 'newgrp' builtins in old Bourne shells.
./functions/lowercaseRename files to lower case.rename lower
./functions/manpageFind and print a manual page.fman
./functions/mhfoldPrint MH folders, useful only because folders(1) doesn't print mod date/times.
./functions/notify.bashNotify when jobs change status.
./functions/pathfuncsPath related functions (no_path, add_path, pre-path, del_path).path
./functions/READMEREADME
./functions/recurseRecursive directory traverser.
./functions/repeat2A clone of C shell builtin 'repeat'.repeat, csh
./functions/repeat3A clone of C shell builtin 'repeat'.repeat, csh
./functions/seqGenerate a sequence from m to n, m defaults to 1.
./functions/seq2Generate a sequence from m to n, m defaults to 1.
./functions/shcatReadline-based pager.cat, readline pager
./functions/shcat2Readline-based pagers.cat, readline pager
./functions/sort-pos-paramsSort the positional parameters.
./functions/substrA function to emulate the ancient ksh builtin.ksh
./functions/substr2A function to emulate the ancient ksh builtin.ksh
./functions/termA shell function to set the terminal type interactively or not.
./functions/whatisAn implementation of the 10th Edition Unix sh builtin 'whatis(1)' command.
./functions/whenceAn almost-ksh compatible 'whence(1)' command.
./functions/whichAn emulation of 'which(1)' as it appears in FreeBSD.
./functions/xalias.bashConvert csh alias commands to bash functions.csh, aliasconv
./functions/xfind.bashA 'find(1)' clone.
./loadables/Example loadable replacements
./loadables/basename.cReturn non-directory portion of pathname.basename
./loadables/cat.ccat(1) replacement with no options - the way cat was intended.cat, readline pager
./loadables/cut.ccut(1) replacement.
./loadables/dirname.cReturn directory portion of pathname.dirname
./loadables/finfo.cPrint file info.
./loadables/getconf.cPOSIX.2 getconf utility.
./loadables/getconf.hReplacement definitions for ones the system doesn't provide.
./loadables/head.cCopy first part of files.
./loadables/hello.cObligatory "Hello World" / sample loadable.
./loadables/id.cPOSIX.2 user identity.
./loadables/ln.cMake links.
./loadables/logname.cPrint login name of current user.
./loadables/Makefile.inSimple makefile for the sample loadable builtins.
./loadables/mkdir.cMake directories.
./loadables/necho.cecho without options or argument interpretation.
./loadables/pathchk.cCheck pathnames for validity and portability.
./loadables/print.cLoadable ksh-93 style print builtin.
./loadables/printenv.cMinimal builtin clone of BSD printenv(1).
./loadables/push.cAnyone remember TOPS-20?
./loadables/READMEREADME
./loadables/realpath.cCanonicalize pathnames, resolving symlinks.
./loadables/rmdir.cRemove directory.
./loadables/sleep.csleep for fractions of a second.
./loadables/strftime.cLoadable builtin interface to strftime(3).
./loadables/sync.cSync the disks by forcing pending filesystem writes to complete.
./loadables/tee.cDuplicate standard input.
./loadables/template.cExample template for loadable builtin.
./loadables/truefalse.cTrue and false builtins.
./loadables/tty.cReturn terminal name.
./loadables/uname.cPrint system information.
./loadables/unlink.cRemove a directory entry.
./loadables/whoami.cPrint out username of current user.
./loadables/perl/Illustrate how to build a Perl interpreter into bash.
./miscMiscellaneous
./misc/aliasconv.bashConvert csh aliases to bash aliases and functions.csh, xalias
./misc/aliasconv.shConvert csh aliases to bash aliases and functions.csh, xalias
./misc/cshtobashConvert csh aliases, environment variables, and variables to bash equivalents.csh, xalias
./misc/READMEREADME
./misc/suncmd.termcapSunView TERMCAP string.
./scripts.noahNoah Friedman's collection of scripts (updated to bash v2 syntax by Chet Ramey)
./scripts.noah/aref.bashPseudo-arrays and substring indexing examples.
./scripts.noah/bash.sub.bashLibrary functions used by require.bash.
./scripts.noah/bash_version.bashA function to slice up $BASH_VERSION.
./scripts.noah/meta.bashEnable and disable eight-bit readline input.
./scripts.noah/mktmp.bashMake a temporary file with a unique name.
./scripts.noah/number.bashA fun hack to translate numerals into English.
./scripts.noah/PERMISSIONPermissions to use the scripts in this directory.
./scripts.noah/prompt.bashA way to set PS1 to some predefined strings.
./scripts.noah/READMEREADME
./scripts.noah/remap_keys.bashA front end to 'bind' to redo readline bindings.
./scripts.noah/require.bashLisp-like require/provide library functions for bash.
./scripts.noah/send_mail.bashReplacement SMTP client written in bash.
./scripts.noah/shcat.bashBash replacement for 'cat(1)'.cat
./scripts.noah/source.bashReplacement for source that uses current directory.
./scripts.noah/string.bashThe string(3) functions at the shell level.
./scripts.noah/stty.bashFront-end to stty(1) that changes readline bindings too.fstty
./scripts.noah/y_or_n_p.bashPrompt for a yes/no/quit answer.ask
./scripts.v2John DuBois' ksh script collection (converted to bash v2 syntax by Chet Ramey).
./scripts.v2/arc2tarzConvert an "arc" archive to a compressed tar archive.
./scripts.v2/bashrandRandom number generator with upper and lower bounds and optional seed.random
./scripts.v2/cal2day.bashConvert a day number to a name.
./scripts.v2/cdhist.bashcd replacement with a directory stack added.
./scripts.v2/corenameTell what produced a core file.
./scripts.v2/fmanFast man(1) replacement.manpage
./scripts.v2/frcpCopy files using ftp(1) but with rcp-type command line syntax.
./scripts.v2/lowercaseChange filenames to lower case.rename lower
./scripts.v2/ncpA nicer front end for cp(1) (has -i, etc.).
./scripts.v2/newextChange the extension of a group of files.rename
./scripts.v2/nmvA nicer front end for mv(1) (has -i, etc.).rename
./scripts.v2/pagesPrint specified pages from files.
./scripts.v2/PERMISSIONPermissions to use the scripts in this directory.
./scripts.v2/pfA pager front end that handles compressed files.
./scripts.v2/pmtopPoor man's 'top(1)' for SunOS 4.x and BSD/OS.
./scripts.v2/READMEREADME
./scripts.v2/renRename files by changing parts of filenames that match a pattern.rename
./scripts.v2/renameChange the names of files that match a pattern.rename
./scripts.v2/repeatExecute a command multiple times.repeat
./scripts.v2/shprofLine profiler for bash scripts.
./scripts.v2/untarUnarchive a (possibly compressed) tarfile into a directory.
./scripts.v2/uudecCarefully uudecode(1) multiple files.
./scripts.v2/uuencuuencode(1) multiple files.
./scripts.v2/vtreePrint a visual display of a directory tree.tree
./scripts.v2/whereShow where commands that match a pattern are.
./scriptsExample scripts
./scripts/adventure.shText adventure game in bash!
./scripts/bcsh.shBourne shell cshell-emulator.csh
./scripts/cat.shReadline-based pager.cat, readline pager
./scripts/centerCenter - center a group of lines.
./scripts/dd-ex.shLine editor using only /bin/sh, /bin/dd and /bin/rm.
./scripts/fixfiles.bashRecurse a tree and fix files containing various "bad" chars.
./scripts/hanoi.bashThe inevitable Towers of Hanoi in bash.
./scripts/inpathSearch $PATH for a file the same name as $1; return TRUE if found.inpath
./scripts/krand.bashProduces a random number within integer limits.random
./scripts/line-input.bashLine input routine for GNU Bourne-Again Shell plus terminal-control primitives.
./scripts/nohup.bashbash version of 'nohup' command.
./scripts/precedenceTest relative precedences for '&&' and '||' operators.
./scripts/randomcard.bashPrint a random card from a card deck.random
./scripts/READMEREADME
./scripts/scrollbarDisplay scrolling text.
./scripts/scrollbar2Display scrolling text.
./scripts/self-reproA self-reproducing script (careful!)
./scripts/showperm.bashConvert ls(1) symbolic permissions into octal mode.
./scripts/shpromptDisplay a prompt and get an answer satisfying certain criteria.ask
./scripts/spin.bashDisplay a 'spinning wheel' to show progress.
./scripts/timeoutGive rsh(1) a shorter timeout.
./scripts/timeout2Execute a given command with a timeout.
./scripts/timeout3Execute a given command with a timeout.
./scripts/vtree2Display a tree printout of dir in 1k blocks.tree
./scripts/vtree3Display a graphical tree printout of dir.tree
./scripts/vtree3aDisplay a graphical tree printout of dir.tree
./scripts/websrv.shA web server in bash!
./scripts/xterm_titlePrint the contents of the xterm title bar.
./scripts/zprintfEmulate printf (obsolete since it's now a bash builtin).
./startup-filesExample Start-up files.
./startup-files/Bash_aliasesSome useful aliases (Fox).
./startup-files/Bash_profileSample startup file for bash login shells (Fox).
./startup-files/bash-profileSample startup file for bash login shells (Ramey).
./startup-files/bashrcSample Bourne Again SHell init file (Ramey).
./startup-files/Bashrc.bfoxSample Bourne Again SHell init file (Fox).
./startup-files/READMEREADME
./startup-files/appleExample Start-up files for Mac OS X.
./startup-files/apple/aliasesSample aliases for Mac OS X.
./startup-files/apple/bash.defaultsSample User preferences file.
./startup-files/apple/environmentSample Bourne Again Shell environment file.
./startup-files/apple/loginSample login wrapper.
./startup-files/apple/logoutSample logout wrapper.
./startup-files/apple/rcSample Bourne Again Shell config file.
./startup-files/apple/READMEREADME
-- cgit v1.2.3