#!/usr/bin/env bash set -- A B "C" for a; do shift for b; do printf "%s - %s\n" "$a" "$b" done done