I'd like to run both `traceroute -w2` and `traceroute6 -w2`, sequentially, in a shell script, to try out multiple different hosts.

A naive approach may just use a temporary variable to gather all the hosts within (e.g., set `HOSTS` to `ordns.he.net one.one.one.one google-public-dns-a.google.com`), and then just pipe it individually to each command, like, `echo $HOSTS | xargs -n1 traceroute -w2` et al, but this would work differently in `tcsh` than in `bash`, and may be prone to mistakes if you want to add more commands (as you'd be adding those as code as opposed to a list of things to do), and I'm thinking there's some better way to join together the ***list of commands*** (e.g., a command name with a single parameter) with the ***list of arguments*** (e.g., hostnames in our example), for the shell to execute every possible combination.

I've tried doing some combination of `xargs -n1` (for hosts) and `xargs -n2` (for commands with one parameter) piping into each other, but it didn't really make much sense and didn't work.

I'm looking for a solution that doesn't use any GNU tools and would work in a base OpenBSD install (if necessary, `perl` is part of the base OpenBSD, so, it's available as well).