📄 index.html
字号:
><DT>17-6. <AHREF="here-docs.html#EX72">Upload a file pair to <SPANCLASS="QUOTE">"Sunsite"</SPAN> incoming directory</A></DT><DT>17-7. <AHREF="here-docs.html#EX71C">Parameter substitution turned off</A></DT><DT>17-8. <AHREF="here-docs.html#GENERATESCRIPT">A script that generates another script</A></DT><DT>17-9. <AHREF="here-docs.html#HF">Here documents and functions</A></DT><DT>17-10. <AHREF="here-docs.html#ANONHEREDOC"><SPANCLASS="QUOTE">"Anonymous"</SPAN> Here Document</A></DT><DT>17-11. <AHREF="here-docs.html#COMMENTBLOCK">Commenting out a block of code</A></DT><DT>17-12. <AHREF="here-docs.html#SELFDOCUMENT">A self-documenting script</A></DT><DT>17-13. <AHREF="here-docs.html#PREPENDEX">Prepending a line to a file</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#EX63">Recursion, using a local variable</A></DT><DT>23-14. <AHREF="recurnolocvar.html#HANOI">The Towers of Hanoi</A></DT><DT>24-1. <AHREF="aliases.html#AL">Aliases within a script</A></DT><DT>24-2. <AHREF="aliases.html#UNAL"><BCLASS="COMMAND">unalias</B>: Setting and unsetting an alias</A></DT><DT>25-1. <AHREF="list-cons.html#EX64">Using an <SPANCLASS="QUOTE">"and list"</SPAN> to test for command-line arguments</A></DT><DT>25-2. <AHREF="list-cons.html#ANDLIST2">Another command-line arg test using an <SPANCLASS="QUOTE">"and list"</SPAN></A></DT><DT>25-3. <AHREF="list-cons.html#EX65">Using <SPANCLASS="QUOTE">"or lists"</SPAN> in combination with an <SPANCLASS="QUOTE">"and list"</SPAN></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">An old friend: <ICLASS="EMPHASIS">The Bubble Sort</I></A></DT><DT>26-12. <AHREF="arrays.html#EMBARR">Embedded arrays and indirect references</A></DT><DT>26-13. <AHREF="arrays.html#EX68">Complex array application: <ICLASS="EMPHASIS">Sieve of Eratosthenes</I></A></DT><DT>26-14. <AHREF="arrays.html#STACKEX">Emulating a push-down stack</A></DT><DT>26-15. <AHREF="arrays.html#QFUNCTION">Complex array application: <ICLASS="EMPHASIS">Exploring a weird mathematical series</I></A></DT><DT>26-16. <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">test24, another buggy script</A></DT><DT>29-4. <AHREF="debugging.html#ASSERT">Testing a condition with an <SPANCLASS="QUOTE">"assert"</SPAN></A></DT><DT>29-5. <AHREF="debugging.html#EX76">Trapping at exit</A></DT><DT>29-6. <AHREF="debugging.html#ONLINE">Cleaning up after Control-C</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 <BCLASS="COMMAND">echo</B> to a <BCLASS="COMMAND">read</B></A></DT><DT>33-1. <AHREF="wrapper.html#EX3"><BCLASS="COMMAND">shell wrapper</B></A></DT><DT>33-2. <AHREF="wrapper.html#EX4">A slightly more complex <BCLASS="COMMAND">shell wrapper</B></A></DT><DT>33-3. <AHREF="wrapper.html#LOGGINGWRAPPER">A generic <BCLASS="COMMAND">shell wrapper</B> that writes to a logfile</A></DT><DT>33-4. <AHREF="wrapper.html#PRASC">A <BCLASS="COMMAND">shell wrapper</B> around an awk script</A></DT><DT>33-5. <AHREF="wrapper.html#COLTOTALER">A <BCLASS="COMMAND">shell wrapper</B> around another awk script</A></DT><DT>33-6. <AHREF="wrapper.html#EX56">Perl embedded in a <BCLASS="COMMAND">Bash</B> 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"><BCLASS="COMMAND">Widgets invoked from a shell script</B></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"><BCLASS="COMMAND">mailformat</B>: Formatting an e-mail message</A></DT><DT>A-2. <AHREF="contributed-scripts.html#RN"><BCLASS="COMMAND">rn</B>: A simple-minded file rename utility</A></DT><DT>A-3. <AHREF="contributed-scripts.html#BLANKRENAME"><BCLASS="COMMAND">blank-rename</B>: renames filenames containing blanks</A></DT><DT>A-4. <AHREF="contributed-scripts.html#ENCRYPTEDPW"><BCLASS="COMMAND">encryptedpw</B>: Uploading to an ftp site, using a locally encrypted password</A></DT><DT>A-5. <AHREF="contributed-scripts.html#COPYCD"><BCLASS="COMMAND">copy-cd</B>: 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"><BCLASS="COMMAND">days-between</B>: Calculate number of days between two dates</A></DT><DT>A-8. <AHREF="contributed-scripts.html#MAKEDICT">Make a <SPANCLASS="QUOTE">"dictionary"</SPAN></A></DT><DT>A-9. <AHREF="contributed-scripts.html#SOUNDEX">Soundex conversion</A></DT><DT>A-10. <AHREF="contributed-scripts.html#LIFESLOW"><SPANCLASS="QUOTE">"Game of Life"</SPAN></A></DT><DT>A-11. <AHREF="contributed-scripts.html#GEN0DATA">Data file for <SPANCLASS="QUOTE">"Game of Life"</SPAN></A></DT><DT>A-12. <AHREF="contributed-scripts.html#BEHEAD"><BCLASS="COMMAND">behead</B>: Removing mail and news message headers</A></DT><DT>A-13. <AHREF="contributed-scripts.html#FTPGET"><BCLASS="COMMAND">ftpget</B>: Downloading files via ftp</A></DT><DT>A-14. <AHREF="contributed-scripts.html#PW"><BCLASS="COMMAND">password</B>: Generating random 8-character passwords</A></DT><DT>A-15. <AHREF="contributed-scripts.html#FIFO"><BCLASS="COMMAND">fifo</B>: 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"><BCLASS="COMMAND">tree</B>: Displaying a directory tree</A></DT><DT>A-18. <AHREF="contributed-scripts.html#STRING"><BCLASS="COMMAND">string functions</B>: C-like string functions</A></DT><DT>A-19. <AHREF="contributed-scripts.html#DIRECTORYINFO">Directory information</A></DT><DT>A-20. <AHREF="contributed-scripts.html#OBJORIENTED">Object-oriented database</A></DT><DT>A-21. <AHREF="contributed-scripts.html#HASHLIB">Library of hash functions</A></DT><DT>A-22. <AHREF="contributed-scripts.html#HASHEXAMPLE">Colorizing text using hash functions</A></DT><DT>A-23. <AHREF="contributed-scripts.html#USBINST">Mounting USB keychain storage devices</A></DT><DT>A-24. <AHREF="contributed-scripts.html#ARCHIVWEBLOGS">Preserving weblogs</A></DT><DT>A-25. <AHREF="contributed-scripts.html#PROTECTLITERAL">Protecting literal strings</A></DT><DT>A-26. <AHREF="contributed-scripts.html#UNPROTECTLITERAL">Unprotecting literal strings</A></DT><DT>A-27. <AHREF="contributed-scripts.html#ISSPAMMER2">Spammer Identification</A></DT><DT>A-28. <AHREF="contributed-scripts.html#WHX">Spammer Hunt</A></DT><DT>A-29. <AHREF="contributed-scripts.html#WGETTER2">Making <BCLASS="COMMAND">wget</B> easier to use</A></DT><DT>A-30. <AHREF="contributed-scripts.html#BASHPODDER">A <SPANCLASS="QUOTE">"podcasting"</SPAN> script</A></DT><DT>A-31. <AHREF="contributed-scripts.html#BASICSREVIEWED">Basics Reviewed</A></DT><DT>A-32. <AHREF="contributed-scripts.html#CDLL">An expanded <BCLASS="COMMAND">cd</B> command</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">viewdata.sh: Shell Script Conversion of VIEWDATA.BAT</A></DT><DT>P-1. <AHREF="todolist.html#TESTCGI">Print the server environment</A></DT></DL></DIV></DIV><DIVCLASS="NAVFOOTER"><HRALIGN="LEFT"WIDTH="100%"><TABLEWIDTH="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">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 + -