#!/bin/bash for i in {1..10}; do mailx -S v15-compat \ -S mta=smtp://fakesmtp:fakesmtp@127.0.0.1:2525 \ -s "Test ${i}" \ -a README.md \ -a package.json \ foo_${i}@bar${i}.com \ <