#!/bin/rc grep '^struct[ ]+' $* | sed -e 's/struct[ ]+([∏πa-zA-Z0-9_]+).*/typedef struct \1 \1;/' | sort -u