Programming and posix - April 2002

April 3, 2002
Solution Symposium
Page 69
hp e3000
programming
and posix
posix shell command syntax
(cmd) - execute cmd in a subshell
cmd1 | cmd2 - pipe cmd1 stdout to cmd2 stdin
cmd1 && cmd2 - execute cmd2 only if cmd1 returns zero
exit status (true)
cmd1 || cmd2 - execute cmd2 only if cmd1 returns non-
zero exit status (false)
cmd1; cmd2 - execute cmd1, then cmd2
cmd & - execute cmd asynchronously