Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
Shells: User's Guide: HP 9000 Computers

Part IV POSIX and Korn Shell

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

POSIX and Korn Shell

Introducing the Shells

Starting and Stopping the Shell

Shell Grammar

Aliasing: Abbreviating Commands

Substitution Capabilities

Command Lines and Command History

Basic Shell Programming

Controlling Jobs

Advanced Concepts and Commands

Command Reference

Table of Contents

15 Introducing the Shells
Introduction
What is a Shell?
POSIX and Korn Shell Versus Other Shells
Features From C Shell
Differences from Bourne Shell
Differences between POSIX Shell and Korn Shell
Definition of Terms
Conventions
Supplementary Information Resources
16 Starting and Stopping the Shell
Introduction
Getting Started
Login
Command Line
Invoking the Shell
Running POSIX or Korn Shell from the Current Shell
Specifying Your Login Shell
Setting Environment and Shell Variables
Setting Up .profile and .kshrc
Setting up .profile
Setting up ENV
The set Command
Terminating the Shell
Using exit
Executing a .logout Script
17 Shell Grammar
Introduction
Using Pipes
Two-Way Pipes
Command Separators and Terminators
Name Completion
File Name Completion
Path Name Completion
File Name Substitution
Quoting
Input and Output
Other Metacharacters
18 Aliasing: Abbreviating Commands
Introduction
Setting an Alias
Tracking Aliases (for Korn Shell only)
Exporting Aliases (for Korn Shell only)
Default Aliases
Special Aliasing Features
Unsetting an Alias
19 Substitution Capabilities
Introduction
Tilde Substitution
Parameter Substitution
Setting and Using Keyword/Named Parameters
Setting and Using Positional Parameters
Parameter Substitution Conventions
Special Parameters
Command Substitution
20 Command Lines and Command History
Editing Command Lines
Using Inline Editing Modes
Using vi Line Edit Mode
Using emacs and gmacs Line Edit Mode
Accessing the History File
Using the fc Command
21 Basic Shell Programming
Introduction
Creating and Executing Shell Scripts
Commenting
Data Input and Output
Reading Input Data
Printing Data
Conditional Statements
Using the test Command
Using the if Statement
Using the case Statement
Using the select Statement
Using the for Loop
Using the while/until Loops
Using the break Statement
Using the continue Statement
Arithmetic Evaluation Using let
Accessing Arrays
Writing Functions
Calling Functions
Returning from a Function
22 Controlling Jobs
Introduction
Creating Jobs
Monitoring Jobs
Suspending Jobs
Putting Jobs in Background/Foreground
Killing Jobs
23 Advanced Concepts and Commands
Introduction
The ENV Variable
Coprocesses
The whence Command
The set Command
The typeset Command (for Korn Shell only)
The trap Command
The ulimit Command (for Korn Shell only)
24 Command Reference
Introduction
alias
Syntax
Example
bg
Syntax
Example
break
Syntax
Example
case
Syntax
Example
cd
Syntax
Example
continue
Syntax
Example
echo
Syntax
Example
eval
Syntax
Example
exec
Syntax
Example
exit
Syntax
Example
export
Syntax
Example
fc
Syntax
Example
fg
Syntax
Example
for
Syntax
Example
function
Syntax
Example
if
Syntax
Example
jobs
Syntax
Example
kill
Syntax
Example
let
Syntax
Example
print
Syntax
Example
pwd
Syntax
Example
read
Syntax
Example
readonly
Syntax
Example
return
Syntax
Example
select
Syntax
Example
set
Syntax
Example
shift
Syntax
Example
test
Syntax
Example
time
Syntax
Example
times
Syntax
Example
trap
Syntax
Example
typeset
Syntax
Example
ulimit
Syntax
Example
umask
Syntax
Example
unalias
Syntax
Example
unset
Syntax
Example
wait
Syntax
Example
whence
Syntax
Example
while/until
Syntax
Example
Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1983-1991 Hewlett-Packard Development Company, L.P.