diff options
Diffstat (limited to 'examples/INDEX.html')
| -rw-r--r-- | examples/INDEX.html | 464 |
1 files changed, 31 insertions, 433 deletions
diff --git a/examples/INDEX.html b/examples/INDEX.html index bd06b256..bcca1f9e 100644 --- a/examples/INDEX.html +++ b/examples/INDEX.html @@ -44,44 +44,28 @@ <td>ksh</td> </tr> <tr> + <td>./functions/autoload.v3</td> + <td>An updated ksh-compatible 'autoload'.</td> + <td>ksh</td> + </tr> + <tr> <td>./functions/basename</td> <td>A replacement for basename(1).</td> <td>basename</td> </tr> <tr> - <td>./functions/basename2</td> - <td>Fast basename(1) and dirname(1) functions for BASH/SH.</td> - <td>basename, dirname</td> - </tr> - <tr> - <td>./functions/coproc.bash</td> - <td>Start, control, and end coprocesses.</td> - </tr> - <tr> - <td>./functions/coshell.bash</td> - <td>Control shell coprocesses (see coprocess.bash).</td> - </tr> - <tr> - <td>./functions/coshell.README</td> - <td>README for coshell and coproc.</td> - </tr> - <tr> <td>./functions/csh-compat</td> <td>A C-shell compatibility package.</td> <td>csh</td> </tr> <tr> - <td>./functions/dirfuncs</td> - <td>Directory manipulation functions from the book 'The Korn Shell'.</td> - </tr> - <tr> <td>./functions/dirname</td> <td>A replacement for dirname(1).</td> <td>dirname</td> </tr> <tr> - <td>./functions/emptydir</td> - <td>Find out if a directory is empty.</td> + <td>./functions/dirstack</td> + <td>Directory stack functions.</td> </tr> <tr> <td>./functions/exitstat</td> @@ -101,18 +85,6 @@ <td>stty.bash</td> </tr> <tr> - <td>./functions/func</td> - <td>Print out definitions for functions named by arguments.</td> - </tr> - <tr> - <td>./functions/gethtml</td> - <td>Get a web page from a remote server (wget(1) in bash!).</td> - </tr> - <tr> - <td>./functions/getoptx.bash</td> - <td>getopt function that parses long-named options.</td> - </tr> - <tr> <td>./functions/inetaddr</td> <td>Internet address conversion (inet2hex & hex2inet).</td> </tr> @@ -122,10 +94,6 @@ <td>inpath</td> </tr> <tr> - <td>./functions/isnum.bash</td> - <td>Test user input on numeric or character value.</td> - </tr> - <tr> <td>./functions/isnum2</td> <td>Test user input on numeric values, with floating point.</td> </tr> @@ -134,18 +102,6 @@ <td>Test user input for valid IP Addresses.</td> </tr> <tr> - <td>./functions/jdate.bash</td> - <td>Julian date conversion.</td> - </tr> - <tr> - <td>./functions/jj.bash</td> - <td>Look for running jobs.</td> - </tr> - <tr> - <td>./functions/keep</td> - <td>Try to keep some programs in the foreground and running.</td> - </tr> - <tr> <td>./functions/ksh-cd</td> <td>ksh-like 'cd': cd [-LP] [dir [change]].</td> <td>ksh</td> @@ -165,47 +121,14 @@ <td>Replace the 'login' and 'newgrp' builtins in old Bourne shells.</td> </tr> <tr> - <td>./functions/lowercase</td> - <td>Rename files to lower case.</td> - <td>rename lower</td> - </tr> - <tr> - <td>./functions/manpage</td> - <td>Find and print a manual page.</td> - <td>fman</td> - </tr> - <tr> - <td>./functions/mhfold</td> - <td>Print MH folders, useful only because folders(1) doesn't print mod date/times.</td> - </tr> - <tr> <td>./functions/notify.bash</td> <td>Notify when jobs change status.</td> </tr> <tr> - <td>./functions/pathfuncs</td> - <td>Path related functions (no_path, add_path, pre-path, del_path).</td> - <td>path</td> - </tr> - <tr> <td>./functions/README</td> <td>README</td> </tr> <tr> - <td>./functions/recurse</td> - <td>Recursive directory traverser.</td> - </tr> - <tr> - <td>./functions/repeat2</td> - <td>A clone of C shell builtin 'repeat'.</td> - <td>repeat, csh</td> - </tr> - <tr> - <td>./functions/repeat3</td> - <td>A clone of C shell builtin 'repeat'.</td> - <td>repeat, csh</td> - </tr> - <tr> <td>./functions/seq</td> <td>Generate a sequence from m to n, m defaults to 1.</td> </tr> @@ -238,10 +161,6 @@ <td>ksh</td> </tr> <tr> - <td>./functions/term</td> - <td>A shell function to set the terminal type interactively or not.</td> - </tr> - <tr> <td>./functions/whatis</td> <td>An implementation of the 10th Edition Unix sh builtin 'whatis(1)' command.</td> </tr> @@ -254,17 +173,6 @@ <td>An emulation of 'which(1)' as it appears in FreeBSD.</td> </tr> <tr> - <td>./functions/xalias.bash</td> - <td>Convert csh alias commands to bash functions.</td> - <td>csh, aliasconv</td> - </tr> - <tr> - <td>./functions/xfind.bash</td> - <td>A 'find(1)' clone.</td> - </tr> - <tr> - </tr> - <tr> <td>./loadables/</td> <td>Example loadable replacements</td> </tr> @@ -279,25 +187,17 @@ <td>cat, readline pager</td> </tr> <tr> - <td>./loadables/cut.c</td> - <td>cut(1) replacement.</td> - </tr> - <tr> <td>./loadables/dirname.c</td> <td>Return directory portion of pathname.</td> <td>dirname</td> </tr> <tr> - <td>./loadables/finfo.c</td> - <td>Print file info.</td> + <td>./loadables/fdflags.c</td> + <td>Display or modify file descriptor flags</td> </tr> <tr> - <td>./loadables/getconf.c</td> - <td>POSIX.2 getconf utility.</td> - </tr> - <tr> - <td>./loadables/getconf.h</td> - <td>Replacement definitions for ones the system doesn't provide.</td> + <td>./loadables/finfo.c</td> + <td>Print file info.</td> </tr> <tr> <td>./loadables/head.c</td> @@ -324,10 +224,18 @@ <td>Simple makefile for the sample loadable builtins.</td> </tr> <tr> + <td>./loadables/Makefile.inc.in</td> + <td>Sample makefile to use for loadable builtin development.</td> + </tr> + <tr> <td>./loadables/mkdir.c</td> <td>Make directories.</td> </tr> <tr> + <td>./loadables/mypid.c</td> + <td>Demonstrate how a loadable builtin can create and delete shell variables.</td> + </tr> + <tr> <td>./loadables/necho.c</td> <td>echo without options or argument interpretation.</td> </tr> @@ -356,14 +264,26 @@ <td>Canonicalize pathnames, resolving symlinks.</td> </tr> <tr> + <td>./loadables/rm.c</td> + <td>Remove file.</td> + </tr> + <tr> <td>./loadables/rmdir.c</td> <td>Remove directory.</td> </tr> <tr> + <td>./loadables/setpgid.c</td> + <td>Set a child process's process group. + </tr> + <tr> <td>./loadables/sleep.c</td> <td>sleep for fractions of a second.</td> </tr> <tr> + <td>./loadables/stat.c</td> + <td>Load an associative array with stat information about a file.</td> + </tr> + <tr> <td>./loadables/strftime.c</td> <td>Loadable builtin interface to strftime(3).</td> </tr> @@ -431,221 +351,12 @@ <td>README</td> </tr> <tr> - <td>./misc/suncmd.termcap</td> - <td>SunView TERMCAP string.</td> - </tr> - <tr> - </tr> - <tr> - <td>./scripts.noah</td> - <td>Noah Friedman's collection of scripts (updated to bash v2 syntax by Chet Ramey)</td> - </tr> - <tr> - <td>./scripts.noah/aref.bash</td> - <td>Pseudo-arrays and substring indexing examples.</td> - </tr> - <tr> - <td>./scripts.noah/bash.sub.bash</td> - <td>Library functions used by require.bash.</td> - </tr> - <tr> - <td>./scripts.noah/bash_version.bash</td> - <td>A function to slice up $BASH_VERSION.</td> - </tr> - <tr> - <td>./scripts.noah/meta.bash</td> - <td>Enable and disable eight-bit readline input.</td> - </tr> - <tr> - <td>./scripts.noah/mktmp.bash</td> - <td>Make a temporary file with a unique name.</td> - </tr> - <tr> - <td>./scripts.noah/number.bash</td> - <td>A fun hack to translate numerals into English.</td> - </tr> - <tr> - <td>./scripts.noah/PERMISSION</td> - <td>Permissions to use the scripts in this directory.</td> - </tr> - <tr> - <td>./scripts.noah/prompt.bash</td> - <td>A way to set PS1 to some predefined strings.</td> - </tr> - <tr> - <td>./scripts.noah/README</td> - <td>README</td> - </tr> - <tr> - <td>./scripts.noah/remap_keys.bash</td> - <td>A front end to 'bind' to redo readline bindings.</td> - </tr> - <tr> - <td>./scripts.noah/require.bash</td> - <td>Lisp-like require/provide library functions for bash.</td> - </tr> - <tr> - <td>./scripts.noah/send_mail.bash</td> - <td>Replacement SMTP client written in bash.</td> - </tr> - <tr> - <td>./scripts.noah/shcat.bash</td> - <td>Bash replacement for 'cat(1)'.</td> - <td>cat</td> - </tr> - <tr> - <td>./scripts.noah/source.bash</td> - <td>Replacement for source that uses current directory.</td> - </tr> - <tr> - <td>./scripts.noah/string.bash</td> - <td>The string(3) functions at the shell level.</td> - </tr> - <tr> - <td>./scripts.noah/stty.bash</td> - <td>Front-end to stty(1) that changes readline bindings too.</td> - <td>fstty</td> - </tr> - <tr> - <td>./scripts.noah/y_or_n_p.bash</td> - <td>Prompt for a yes/no/quit answer.</td> - <td>ask</td> - </tr> - <tr> - </tr> - <tr> - <td>./scripts.v2</td> - <td>John DuBois' ksh script collection (converted to bash v2 syntax by Chet Ramey).</td> - </tr> - <tr> - <td>./scripts.v2/arc2tarz</td> - <td>Convert an "arc" archive to a compressed tar archive.</td> - </tr> - <tr> - <td>./scripts.v2/bashrand</td> - <td>Random number generator with upper and lower bounds and optional seed.</td> - <td>random</td> - </tr> - <tr> - <td>./scripts.v2/cal2day.bash</td> - <td>Convert a day number to a name.</td> - </tr> - <tr> - <td>./scripts.v2/cdhist.bash</td> - <td>cd replacement with a directory stack added.</td> - </tr> - <tr> - <td>./scripts.v2/corename</td> - <td>Tell what produced a core file.</td> - </tr> - <tr> - <td>./scripts.v2/fman</td> - <td>Fast man(1) replacement.</td> - <td>manpage</td> - </tr> - <tr> - <td>./scripts.v2/frcp</td> - <td>Copy files using ftp(1) but with rcp-type command line syntax.</td> - </tr> - <tr> - <td>./scripts.v2/lowercase</td> - <td>Change filenames to lower case.</td> - <td>rename lower</td> - </tr> - <tr> - <td>./scripts.v2/ncp</td> - <td>A nicer front end for cp(1) (has -i, etc.).</td> - </tr> - <tr> - <td>./scripts.v2/newext</td> - <td>Change the extension of a group of files.</td> - <td>rename</td> - </tr> - <tr> - <td>./scripts.v2/nmv</td> - <td>A nicer front end for mv(1) (has -i, etc.).</td> - <td>rename</td> - </tr> - <tr> - <td>./scripts.v2/pages</td> - <td>Print specified pages from files.</td> - </tr> - <tr> - <td>./scripts.v2/PERMISSION</td> - <td>Permissions to use the scripts in this directory.</td> - </tr> - <tr> - <td>./scripts.v2/pf</td> - <td>A pager front end that handles compressed files.</td> - </tr> - <tr> - <td>./scripts.v2/pmtop</td> - <td>Poor man's 'top(1)' for SunOS 4.x and BSD/OS.</td> - </tr> - <tr> - <td>./scripts.v2/README</td> - <td>README</td> - </tr> - <tr> - <td>./scripts.v2/ren</td> - <td>Rename files by changing parts of filenames that match a pattern.</td> - <td>rename</td> - </tr> - <tr> - <td>./scripts.v2/rename</td> - <td>Change the names of files that match a pattern.</td> - <td>rename</td> - </tr> - <tr> - <td>./scripts.v2/repeat</td> - <td>Execute a command multiple times.</td> - <td>repeat</td> - </tr> - <tr> - <td>./scripts.v2/shprof</td> - <td>Line profiler for bash scripts.</td> - </tr> - <tr> - <td>./scripts.v2/untar</td> - <td>Unarchive a (possibly compressed) tarfile into a directory.</td> - </tr> - <tr> - <td>./scripts.v2/uudec</td> - <td>Carefully uudecode(1) multiple files.</td> - </tr> - <tr> - <td>./scripts.v2/uuenc</td> - <td>uuencode(1) multiple files.</td> - </tr> - <tr> - <td>./scripts.v2/vtree</td> - <td>Print a visual display of a directory tree.</td> - <td>tree</td> - </tr> - <tr> - <td>./scripts.v2/where</td> - <td>Show where commands that match a pattern are.</td> - </tr> - <tr> </tr> <tr> <td>./scripts</td> <td>Example scripts</td> </tr> <tr> - <td>./scripts/adventure.sh</td> - <td>Text adventure game in bash!</td> - </tr> - <tr> - <td>./scripts/bcsh.sh</td> - <td>Bourne shell cshell-emulator.</td> - <td>csh</td> - </tr> - <tr> - <td>./scripts/bash-hexdump.sh</td> - <td>hexdump(1) in bash</td> - <td>hexdump -C, hd</td> - <tr> <td>./scripts/cat.sh</td> <td>Readline-based pager.</td> <td>cat, readline pager</td> @@ -655,65 +366,15 @@ <td>Center - center a group of lines.</td> </tr> <tr> - <td>./scripts/dd-ex.sh</td> - <td>Line editor using only /bin/sh, /bin/dd and /bin/rm.</td> - </tr> - <tr> - <td>./scripts/fixfiles.bash</td> - <td>Recurse a tree and fix files containing various "bad" chars.</td> - </tr> - <tr> - <td>./scripts/hanoi.bash</td> - <td>The inevitable Towers of Hanoi in bash.</td> - </tr> - <tr> <td>./scripts/inpath</td> <td>Search $PATH for a file the same name as $1; return TRUE if found.</td> <td>inpath</td> </tr> <tr> - <td>./scripts/krand.bash</td> - <td>Produces a random number within integer limits.</td> - <td>random</td> - </tr> - <tr> - <td>./scripts/line-input.bash</td> - <td>Line input routine for GNU Bourne-Again Shell plus terminal-control primitives.</td> - </tr> - <tr> - <td>./scripts/nohup.bash</td> - <td>bash version of 'nohup' command.</td> - </tr> - <tr> - <td>./scripts/precedence</td> - <td>Test relative precedences for '&&' and '||' operators.</td> - </tr> - <tr> - <td>./scripts/randomcard.bash</td> - <td>Print a random card from a card deck.</td> - <td>random</td> - </tr> - <tr> <td>./scripts/README</td> <td>README</td> </tr> <tr> - <td>./scripts/scrollbar</td> - <td>Display scrolling text.</td> - </tr> - <tr> - <td>./scripts/scrollbar2</td> - <td>Display scrolling text.</td> - </tr> - <tr> - <td>./scripts/self-repro</td> - <td>A self-reproducing script (careful!)</td> - </tr> - <tr> - <td>./scripts/showperm.bash</td> - <td>Convert ls(1) symbolic permissions into octal mode.</td> - </tr> - <tr> <td>./scripts/shprompt</td> <td>Display a prompt and get an answer satisfying certain criteria.</td> <td>ask</td> @@ -723,37 +384,6 @@ <td>Display a 'spinning wheel' to show progress.</td> </tr> <tr> - <td>./scripts/timeout</td> - <td>Give rsh(1) a shorter timeout.</td> - </tr> - <tr> - <td>./scripts/timeout2</td> - <td>Execute a given command with a timeout.</td> - </tr> - <tr> - <td>./scripts/timeout3</td> - <td>Execute a given command with a timeout.</td> - </tr> - <tr> - <td>./scripts/vtree2</td> - <td>Display a tree printout of dir in 1k blocks.</td> - <td>tree</td> - </tr> - <tr> - <td>./scripts/vtree3</td> - <td>Display a graphical tree printout of dir.</td> - <td>tree</td> - </tr> - <tr> - <td>./scripts/vtree3a</td> - <td>Display a graphical tree printout of dir.</td> - <td>tree</td> - </tr> - <tr> - <td>./scripts/websrv.sh</td> - <td>A web server in bash!</td> - </tr> - <tr> <td>./scripts/xterm_title</td> <td>Print the contents of the xterm title bar.</td> </tr> @@ -793,36 +423,4 @@ </tr> <tr> </tr> - <tr> - <td>./startup-files/apple</td> - <td>Example Start-up files for Mac OS X.</td> - </tr> - <tr> - <td>./startup-files/apple/aliases</td> - <td>Sample aliases for Mac OS X.</td> - </tr> - <tr> - <td>./startup-files/apple/bash.defaults</td> - <td>Sample User preferences file.</td> - </tr> - <tr> - <td>./startup-files/apple/environment</td> - <td>Sample Bourne Again Shell environment file.</td> - </tr> - <tr> - <td>./startup-files/apple/login</td> - <td>Sample login wrapper.</td> - </tr> - <tr> - <td>./startup-files/apple/logout</td> - <td>Sample logout wrapper.</td> - </tr> - <tr> - <td>./startup-files/apple/rc</td> - <td>Sample Bourne Again Shell config file.</td> - </tr> - <tr> - <td>./startup-files/apple/README</td> - <td>README</td> - </tr> </table> |
