#!/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 f=quacks-ingredients-counts.scad cat >$f.tmp <>$f.tmp mv -f $f.tmp $f