Shall高级编程
源代码在线查看: bash-options.html
> > >Bash Command-Line Options > NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ "> REL="HOME" TITLE="Advanced Bash-Scripting Guide" HREF="index.html"> REL="UP" TITLE="Command-Line Options" HREF="command-line-options.html"> REL="PREVIOUS" TITLE="Command-Line Options" HREF="command-line-options.html"> REL="NEXT" TITLE=" Important Files" HREF="files.html"> HTTP-EQUIV="Content-Style-Type" CONTENT="text/css"> REL="stylesheet" HREF="common/kde-common.css" TYPE="text/css"> HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> HTTP-EQUIV="Content-Language" CONTENT="en"> REL="stylesheet" HREF="common/kde-localised.css" TYPE="text/css" TITLE="KDE-English"> REL="stylesheet" HREF="common/kde-default.css" TYPE="text/css" TITLE="KDE-Default"> > CLASS="SECT1" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#AA0000" VLINK="#AA0055" ALINK="#AA0000" STYLE="font-family: sans-serif;" > CLASS="NAVHEADER" > SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" > > COLSPAN="3" ALIGN="center" >Advanced Bash-Scripting Guide: An in-depth exploration of the art of shell scripting > > > WIDTH="10%" ALIGN="left" VALIGN="bottom" > HREF="command-line-options.html" ACCESSKEY="P" >Prev > > WIDTH="80%" ALIGN="center" VALIGN="bottom" >Appendix F. Command-Line Options > WIDTH="10%" ALIGN="right" VALIGN="bottom" > HREF="files.html" ACCESSKEY="N" >Next > > > > ALIGN="LEFT" WIDTH="100%"> > CLASS="SECT1" > CLASS="SECT1" > NAME="BASH-OPTIONS" > >F.2. Bash Command-Line Options > > NAME="CLOPTS" > > > > CLASS="FIRSTTERM" >Bash > itself has a number of command-line options. Here are some of the more useful ones. > > > > CLASS="OPTION" >-c > > > CLASS="emphasis" > CLASS="EMPHASIS" >Read commands from the following string and assign any arguments to the HREF="variables2.html#POSPARAMREF" >positional parameters >. > > > > BORDER="0" BGCOLOR="#E0E0E0" WIDTH="90%" > > > CLASS="SCREEN" > CLASS="PROMPT" >bash$ > CLASS="USERINPUT" > >bash -c 'set a b c d; IFS="+-;"; echo "$*"' > > CLASS="COMPUTEROUTPUT" >a+b+c+d > > > > > > > > > CLASS="OPTION" >-r > > > CLASS="OPTION" >--restricted > > > CLASS="emphasis" > CLASS="EMPHASIS" >Runs the shell, or a script, in HREF="restricted-sh.html#RESTRICTEDSHREF" >restricted mode >. > > > > > > CLASS="OPTION" >--posix > > > CLASS="emphasis" > CLASS="EMPHASIS" >Forces Bash to conform to HREF="sha-bang.html#POSIX2REF" >POSIX > mode. > > > > > > CLASS="OPTION" >--version > > > CLASS="emphasis" > CLASS="EMPHASIS" >Display Bash version information and exit. > > > > > > CLASS="OPTION" >-- > > > CLASS="emphasis" > CLASS="EMPHASIS" >End of options. Anything further on the command line is an argument, not an option. > > > > > > CLASS="NAVFOOTER" > ALIGN="LEFT" WIDTH="100%"> SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" > > WIDTH="33%" ALIGN="left" VALIGN="top" > HREF="command-line-options.html" ACCESSKEY="P" >Prev > > WIDTH="34%" ALIGN="center" VALIGN="top" > HREF="index.html" ACCESSKEY="H" >Home > > WIDTH="33%" ALIGN="right" VALIGN="top" > HREF="files.html" ACCESSKEY="N" >Next > > > > WIDTH="33%" ALIGN="left" VALIGN="top" >Command-Line Options > WIDTH="34%" ALIGN="center" VALIGN="top" > HREF="command-line-options.html" ACCESSKEY="U" >Up > > WIDTH="33%" ALIGN="right" VALIGN="top" >Important Files > > > > > >