Would this also work in bash or just bourne?
Also the respective arguments are $1 and $2?
On Thursday 05 September 2002 18:18, you wrote:
>
> #!/bin/sh
> for i in 1 2 3 4 5 ; do
> [ "x$1" != "x" ] && . $1
> done
> [ "x$2" != "x" ] && . $2
>
> ------------------------------
>
> will execute the command in arg 1, five times, followed by
> the command in arg 2 -- if either arg is null, no error
>
> untested, but should work
>
> -- Russ Herrold
This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 19:00:42 EDT