#! /sbin/sh for i in `ls` do cat $i | awk '{ if ($1 == "") { printf"\n" } else printf"%s\n", $0 }' > new/$i done