ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzahz_5.4.0.1/groupcmd.htm

41 lines
880 B
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<meta name="generator" content="HTML Tidy, see www.w3.org">
<meta http-equiv="Content-Type" content=
"text/html; charset=utf-8">
<title>Grouping commands</title>
<LINK rel="stylesheet" type="text/css" href="../rzahg/ic.css">
</HEAD>
<body bgcolor="#FFFFFF">
<!-- Java sync-link -->
<SCRIPT LANGUAGE="Javascript" SRC="../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
<h2>Grouping commands</h2>
<p>You can group commands using either</p>
<p><strong>(</strong> <em>list</em> <strong>)</strong></p>
<p>or</p>
<p><strong>{</strong> <em>list;</em> <strong>}</strong></p>
<p>In the first case, <strong>qsh</strong> runs <em>list</em> in a
subshell environment.</p>
<p><strong>Examples</strong></p>
<ol>
<li>Group two commands in a subshell.
<pre>
( ls | grep apple )
</pre>
</li>
</ol>
</body>
</html>