<p>I have two scripts that often need to be run with the same parameter:</p>

<pre><code>$ populate.ksh 9241 &amp;&amp; check.ksh 9241
</code></pre>

<p>When I need to change the parameter (<strong>9241</strong> in this example), I can go back and edit the line in history.  But since I need to change the number in two places, I sometimes make a typo.  I'd like to be able to change the parameter just once to change it in both places.</p>

One solution is to simply create a wrapper script (
populate_check.ksh
) that calls the scripts in turn:
```
```
r=$1
populate.ksh $r && check.ksh $r
```
```
Or for multiple parameters:
```
```
for r; do
   populate.ksh $r && check.ksh $r
done
```
```
For tasks that are more transient, you can also parametrize the command so that it's easier to edit in history:
```
```
$ r=9241; populate.ksh $r && check.ksh $r
```
```
Or to do several at once:
```
```
$ for r in 9241 9242; do populate.ksh $r && check.ksh $r; done
```
```