#!/bin/bash # This script filters the ATOM_declarations that are actually used from # a set of C source-files, copying their string-value from ../ATOMS # # Usage: # ./atoms.sh *.[ch] inputs="$*" astring() { grep "^A $1\>" ../ATOMS | awk '{print $3}' } atoms=$(grep '\