?? index.html
字號:
></DT><DT>19-11. <AHREF="redircb.html#NAMESDATA">Data file <ICLASS="FIRSTTERM">names.data</I> for above examples</A></DT><DT>19-12. <AHREF="redirapps.html#LOGEVENTS">Logging events</A></DT><DT>20-1. <AHREF="subshells.html#SUBSHELL">Variable scope in a subshell</A></DT><DT>20-2. <AHREF="subshells.html#ALLPROFS">List User Profiles</A></DT><DT>20-3. <AHREF="subshells.html#PARALLEL-PROCESSES">Running parallel processes in subshells</A></DT><DT>21-1. <AHREF="restricted-sh.html#RESTRICTED">Running a script in restricted mode</A></DT><DT>23-1. <AHREF="functions.html#EX59">Simple functions</A></DT><DT>23-2. <AHREF="functions.html#EX60">Function Taking Parameters</A></DT><DT>23-3. <AHREF="functions.html#FUNCCMDLINEARG">Functions and command-line args passed to the script</A></DT><DT>23-4. <AHREF="functions.html#INDFUNC">Passing an indirect reference to a function</A></DT><DT>23-5. <AHREF="functions.html#DEREFERENCECL">Dereferencing a parameter passed to a function</A></DT><DT>23-6. <AHREF="functions.html#REFPARAMS">Again, dereferencing a parameter passed to a function</A></DT><DT>23-7. <AHREF="functions.html#MAX">Maximum of two numbers</A></DT><DT>23-8. <AHREF="functions.html#EX61">Converting numbers to Roman numerals</A></DT><DT>23-9. <AHREF="functions.html#RETURNTEST">Testing large return values in a function</A></DT><DT>23-10. <AHREF="functions.html#MAX2">Comparing two large integers</A></DT><DT>23-11. <AHREF="functions.html#REALNAME">Real name from username</A></DT><DT>23-12. <AHREF="localvar.html#EX62">Local variable visibility</A></DT><DT>23-13. <AHREF="localvar.html#RECURSIONDEMO">Demonstration of a simple recursive function</A></DT><DT>23-14. <AHREF="localvar.html#EX63">Recursion, using a local variable</A></DT><DT>23-15. <AHREF="recurnolocvar.html#FIBO"><ICLASS="FIRSTTERM">The Fibonacci Sequence</I></A></DT><DT>23-16. <AHREF="recurnolocvar.html#HANOI"><ICLASS="FIRSTTERM">The Towers of Hanoi</I></A></DT><DT>24-1. <AHREF="aliases.html#AL">Aliases within a script</A></DT><DT>24-2. <AHREF="aliases.html#UNAL"><ICLASS="FIRSTTERM">unalias</I>: Setting and unsetting an alias</A></DT><DT>25-1. <AHREF="list-cons.html#EX64">Using an <ICLASS="FIRSTTERM">and list</I> to test for command-line arguments</A></DT><DT>25-2. <AHREF="list-cons.html#ANDLIST2">Another command-line arg test using an <ICLASS="FIRSTTERM">and list</I></A></DT><DT>25-3. <AHREF="list-cons.html#EX65">Using <ICLASS="FIRSTTERM">or lists</I> in combination with an <ICLASS="FIRSTTERM">and list</I></A></DT><DT>26-1. <AHREF="arrays.html#EX66">Simple array usage</A></DT><DT>26-2. <AHREF="arrays.html#POEM">Formatting a poem</A></DT><DT>26-3. <AHREF="arrays.html#ARRAYOPS">Various array operations</A></DT><DT>26-4. <AHREF="arrays.html#ARRAYSTROPS">String operations on arrays</A></DT><DT>26-5. <AHREF="arrays.html#SCRIPTARRAY">Loading the contents of a script into an array</A></DT><DT>26-6. <AHREF="arrays.html#EX67">Some special properties of arrays</A></DT><DT>26-7. <AHREF="arrays.html#EMPTYARRAY">Of empty arrays and empty elements</A></DT><DT>26-8. <AHREF="arrays.html#ARRAYASSIGN">Initializing arrays</A></DT><DT>26-9. <AHREF="arrays.html#COPYARRAY">Copying and concatenating arrays</A></DT><DT>26-10. <AHREF="arrays.html#ARRAYAPPEND">More on concatenating arrays</A></DT><DT>26-11. <AHREF="arrays.html#BUBBLE">The Bubble Sort</A></DT><DT>26-12. <AHREF="arrays.html#EMBARR">Embedded arrays and indirect references</A></DT><DT>26-13. <AHREF="arrays.html#EX68">The Sieve of Eratosthenes</A></DT><DT>26-14. <AHREF="arrays.html#EX68A">The Sieve of Eratosthenes, Optimized</A></DT><DT>26-15. <AHREF="arrays.html#STACKEX">Emulating a push-down stack</A></DT><DT>26-16. <AHREF="arrays.html#QFUNCTION">Complex array application: <SPANCLASS="emphasis"><ICLASS="EMPHASIS">Exploring a weird mathematical series</I></SPAN></A></DT><DT>26-17. <AHREF="arrays.html#TWODIM">Simulating a two-dimensional array, then tilting it</A></DT><DT>27-1. <AHREF="devproc.html#DEVTCP">Using <TTCLASS="FILENAME">/dev/tcp</TT> for troubleshooting</A></DT><DT>27-2. <AHREF="procref1.html#PIDID">Finding the process associated with a PID</A></DT><DT>27-3. <AHREF="procref1.html#CONSTAT">On-line connect status</A></DT><DT>28-1. <AHREF="zeros.html#COOKIES">Hiding the cookie jar</A></DT><DT>28-2. <AHREF="zeros.html#EX73">Setting up a swapfile using <TTCLASS="FILENAME">/dev/zero</TT></A></DT><DT>28-3. <AHREF="zeros.html#RAMDISK">Creating a ramdisk</A></DT><DT>29-1. <AHREF="debugging.html#EX74">A buggy script</A></DT><DT>29-2. <AHREF="debugging.html#MISSINGKEYWORD">Missing <AHREF="internal.html#KEYWORDREF">keyword</A></A></DT><DT>29-3. <AHREF="debugging.html#EX75"><ICLASS="FIRSTTERM">test24</I>: another buggy script</A></DT><DT>29-4. <AHREF="debugging.html#ASSERT">Testing a condition with an <ICLASS="FIRSTTERM">assert</I></A></DT><DT>29-5. <AHREF="debugging.html#EX76">Trapping at exit</A></DT><DT>29-6. <AHREF="debugging.html#ONLINE">Cleaning up after <BCLASS="KEYCAP">Control-C</B></A></DT><DT>29-7. <AHREF="debugging.html#VARTRACE">Tracing a variable</A></DT><DT>29-8. <AHREF="debugging.html#MULTIPLEPROC">Running multiple processes (on an SMP box)</A></DT><DT>31-1. <AHREF="gotchas.html#BADOP">Numerical and string comparison are not equivalent</A></DT><DT>31-2. <AHREF="gotchas.html#SUBPIT">Subshell Pitfalls</A></DT><DT>31-3. <AHREF="gotchas.html#BADREAD">Piping the output of <ICLASS="FIRSTTERM">echo</I> to a <ICLASS="FIRSTTERM">read</I></A></DT><DT>33-1. <AHREF="wrapper.html#EX3"><ICLASS="FIRSTTERM">shell wrapper</I></A></DT><DT>33-2. <AHREF="wrapper.html#EX4">A slightly more complex <ICLASS="FIRSTTERM">shell wrapper</I></A></DT><DT>33-3. <AHREF="wrapper.html#LOGGINGWRAPPER">A generic <ICLASS="FIRSTTERM">shell wrapper</I> that writes to a logfile</A></DT><DT>33-4. <AHREF="wrapper.html#PRASC">A <ICLASS="FIRSTTERM">shell wrapper</I> around an awk script</A></DT><DT>33-5. <AHREF="wrapper.html#COLTOTALER">A <ICLASS="FIRSTTERM">shell wrapper</I> around another awk script</A></DT><DT>33-6. <AHREF="wrapper.html#EX56">Perl embedded in a <ICLASS="FIRSTTERM">Bash</I> script</A></DT><DT>33-7. <AHREF="wrapper.html#BASHANDPERL">Bash and Perl scripts combined</A></DT><DT>33-8. <AHREF="recursionsct.html#RECURSE">A (useless) script that recursively calls itself</A></DT><DT>33-9. <AHREF="recursionsct.html#PBOOK">A (useful) script that recursively calls itself</A></DT><DT>33-10. <AHREF="recursionsct.html#USRMNT">Another (useful) script that recursively calls itself</A></DT><DT>33-11. <AHREF="colorizing.html#EX30A">A <SPANCLASS="QUOTE">"colorized"</SPAN> address database</A></DT><DT>33-12. <AHREF="colorizing.html#DRAW-BOX">Drawing a box</A></DT><DT>33-13. <AHREF="colorizing.html#COLORECHO">Echoing colored text</A></DT><DT>33-14. <AHREF="colorizing.html#HORSERACE">A <SPANCLASS="QUOTE">"horserace"</SPAN> game</A></DT><DT>33-15. <AHREF="assortedtips.html#MULTIPLICATION">Return value trickery</A></DT><DT>33-16. <AHREF="assortedtips.html#SUMPRODUCT">Even more return value trickery</A></DT><DT>33-17. <AHREF="assortedtips.html#ARRFUNC">Passing and returning arrays</A></DT><DT>33-18. <AHREF="assortedtips.html#AGRAM">Fun with anagrams</A></DT><DT>33-19. <AHREF="assortedtips.html#DIALOG">Widgets invoked from a shell script</A></DT><DT>34-1. <AHREF="bash2.html#EX77">String expansion</A></DT><DT>34-2. <AHREF="bash2.html#EX78">Indirect variable references - the new way</A></DT><DT>34-3. <AHREF="bash2.html#RESISTOR">Simple database application, using indirect variable referencing</A></DT><DT>34-4. <AHREF="bash2.html#EX79">Using arrays and other miscellaneous trickery to deal four random hands from a deck of cards</A></DT><DT>A-1. <AHREF="contributed-scripts.html#MAILFORMAT"><ICLASS="FIRSTTERM">mailformat</I>: Formatting an e-mail message</A></DT><DT>A-2. <AHREF="contributed-scripts.html#RN"><ICLASS="FIRSTTERM">rn</I>: A simple-minded file renaming utility</A></DT><DT>A-3. <AHREF="contributed-scripts.html#BLANKRENAME"><ICLASS="FIRSTTERM">blank-rename</I>: Renames filenames containing blanks</A></DT><DT>A-4. <AHREF="contributed-scripts.html#ENCRYPTEDPW"><ICLASS="FIRSTTERM">encryptedpw</I>: Uploading to an ftp site, using a locally encrypted password</A></DT><DT>A-5. <AHREF="contributed-scripts.html#COPYCD"><ICLASS="FIRSTTERM">copy-cd</I>: Copying a data CD</A></DT><DT>A-6. <AHREF="contributed-scripts.html#COLLATZ">Collatz series</A></DT><DT>A-7. <AHREF="contributed-scripts.html#DAYSBETWEEN"><ICLASS="FIRSTTERM">days-between</I>: Days between two dates</A></DT><DT>A-8. <AHREF="contributed-scripts.html#MAKEDICT">Making a <ICLASS="FIRSTTERM">dictionary</I></A></DT><DT>A-9. <AHREF="contributed-scripts.html#SOUNDEX">Soundex conversion</A></DT><DT>A-10. <AHREF="contributed-scripts.html#LIFESLOW"><ICLASS="FIRSTTERM">Game of Life</I></A></DT><DT>A-11. <AHREF="contributed-scripts.html#GEN0DATA">Data file for <ICLASS="FIRSTTERM">Game of Life</I></A></DT><DT>A-12. <AHREF="contributed-scripts.html#BEHEAD"><ICLASS="FIRSTTERM">behead</I>: Removing mail and news message headers</A></DT><DT>A-13. <AHREF="contributed-scripts.html#FTPGET"><ICLASS="FIRSTTERM">ftpget</I>: Downloading files via ftp</A></DT><DT>A-14. <AHREF="contributed-scripts.html#PW"><ICLASS="FIRSTTERM">password</I>: Generating random 8-character passwords</A></DT><DT>A-15. <AHREF="contributed-scripts.html#FIFO"><ICLASS="FIRSTTERM">fifo</I>: Making daily backups, using named pipes</A></DT><DT>A-16. <AHREF="contributed-scripts.html#PRIMES">Generating prime numbers using the modulo operator</A></DT><DT>A-17. <AHREF="contributed-scripts.html#TREE"><ICLASS="FIRSTTERM">tree</I>: Displaying a directory tree</A></DT><DT>A-18. <AHREF="contributed-scripts.html#TREE2"><ICLASS="FIRSTTERM">tree2</I>: Alternate directory tree script</A></DT><DT>A-19. <AHREF="contributed-scripts.html#STRING"><ICLASS="FIRSTTERM">string functions</I>: C-style string functions</A></DT><DT>A-20. <AHREF="contributed-scripts.html#DIRECTORYINFO">Directory information</A></DT><DT>A-21. <AHREF="contributed-scripts.html#OBJORIENTED">Object-oriented database</A></DT><DT>A-22. <AHREF="contributed-scripts.html#HASHLIB">Library of hash functions</A></DT><DT>A-23. <AHREF="contributed-scripts.html#HASHEXAMPLE">Colorizing text using hash functions</A></DT><DT>A-24. <AHREF="contributed-scripts.html#HASHEX2">More on hash functions</A></DT><DT>A-25. <AHREF="contributed-scripts.html#USBINST">Mounting USB keychain storage devices</A></DT><DT>A-26. <AHREF="contributed-scripts.html#TOHTML">Converting to HTML</A></DT><DT>A-27. <AHREF="contributed-scripts.html#ARCHIVWEBLOGS">Preserving weblogs</A></DT><DT>A-28. <AHREF="contributed-scripts.html#PROTECTLITERAL">Protecting literal strings</A></DT><DT>A-29. <AHREF="contributed-scripts.html#UNPROTECTLITERAL">Unprotecting literal strings</A></DT><DT>A-30. <AHREF="contributed-scripts.html#ISSPAMMER2">Spammer Identification</A></DT><DT>A-31. <AHREF="contributed-scripts.html#WHX">Spammer Hunt</A></DT><DT>A-32. <AHREF="contributed-scripts.html#WGETTER2">Making <ICLASS="FIRSTTERM">wget</I> easier to use</A></DT><DT>A-33. <AHREF="contributed-scripts.html#BASHPODDER">A <ICLASS="FIRSTTERM">podcasting</I> script</A></DT><DT>A-34. <AHREF="contributed-scripts.html#NIGHTLYBACKUP">Nightly backup to a firewire HD</A></DT><DT>A-35. <AHREF="contributed-scripts.html#CDLL">An expanded <ICLASS="FIRSTTERM">cd</I> command</A></DT><DT>A-36. <AHREF="contributed-scripts.html#SOUNDCARDON">A soundcard setup script</A></DT><DT>A-37. <AHREF="contributed-scripts.html#FINDSPLIT">Locating split paragraphs in a text file</A></DT><DT>A-38. <AHREF="contributed-scripts.html#INSERTIONSORT">Insertion sort</A></DT><DT>A-39. <AHREF="contributed-scripts.html#PADSW">A <ICLASS="FIRSTTERM">pad</I> file generator for shareware authors</A></DT><DT>A-40. <AHREF="contributed-scripts.html#HOMEWORK">An all-purpose shell scripting homework assignment solution</A></DT><DT>A-41. <AHREF="contributed-scripts.html#BASICSREVIEWED">Basics Reviewed</A></DT><DT>C-1. <AHREF="awk.html#LETTERCOUNT2">Counting Letter Occurrences</A></DT><DT>K-1. <AHREF="sample-bashrc.html#BASHRC">Sample <TTCLASS="FILENAME">.bashrc</TT> file</A></DT><DT>L-1. <AHREF="dosbatch.html#VIEWDAT">VIEWDATA.BAT: DOS Batch File</A></DT><DT>L-2. <AHREF="dosbatch.html#VIEWDATA"><ICLASS="FIRSTTERM">viewdata.sh</I>: Shell Script Conversion of VIEWDATA.BAT</A></DT><DT>P-1. <AHREF="todolist.html#TESTCGI">Print the server environment</A></DT><DT>R-1. <AHREF="asciitable.html#ASCIISH">A script that generates an ASCII table</A></DT></DL></DIV></DIV><DIVCLASS="NAVFOOTER"><HRALIGN="LEFT"WIDTH="100%"><TABLESUMMARY="Footer navigation table"WIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top"> </TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"> </TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><AHREF="part1.html"ACCESSKEY="N">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top"> </TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"> </TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">Introduction</TD></TR></TABLE></DIV></BODY></HTML>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -