#!/bin/sh # usage: trunc FILE... # truncate files for f in "$@" ; do cat < /dev/null > "$f" done