O'Reilly logo

Beginning Portable Shell Scripting: From Novice to Professional by Peter Seebach

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

APPENDIX BThe sh Utility

The description of the sh utility includes a number of features not found in some traditional shells, but it gives a good summary of basic usage. Much of this specifies interactive features (which are not universal among shells), but the basic invocation material is a handy reference.

Note All external documents referenced in this appendix are available at www.opengroup.org.

Name

sh - shell, the standard command language interpreter

Synopsis

sh [-abCefhimnuvx][-o option][+abCefhimnuvx][+o option]        [command_file [argument...]] sh -c[-abCefhimnuvx][-o option][+abCefhimnuvx][+o option]command_string        [command_name [argument...]] sh -s[-abCefhimnuvx][-o option][+abCefhimnuvx][+o option][argument]

Description ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required