#!/bin/sh set -e for l in 1 2 3 4 5; do f=quacks-ingredients-L$l.scad cat >$f.tmp < END mv -f $f.tmp $f done