#!/bin/sh for i in msg.[1-9] msg.10; do gzip $i && echo $i finished & done