#!/bin/sh #TODO rewrite without subprocs egrep '^[-_[:alpha:]]+ ?\(' $1 | while read line; do echo ${line%%[ (]*} done