diagrams/scripts/find_diagrams.sh
author Scott Morrison <scott@tqft.net>
Sun, 30 May 2010 13:22:55 -0700
changeset 308 be2d126ce79b
parent 8 15e6335ff1d4
permissions -rwxr-xr-x
send scott back to primary school, where he can learn to count mod 2 and reindex summations

grep -o '\\\mathfig{[0-9\. ]*}{[a-zA-z0-9\/_-]*}' $1 | sed -e 's/\\\mathfig{.*{\(.*\)/\1/' | sed -e 's/}//g' >> diagrams.list
grep -o '\\\placefig{[0-9\. ]*}{[a-zA-z0-9\/_-]*}' $1 | sed -e 's/\\\placefig{.*{\(.*\)/\1/' | sed -e 's/}//g' >> diagrams.list
grep -o '\\\rotatemathfig{ [0-9\.]*}{[0-9\.-]*}{[a-zA-z0-9\/_-]*}' $1 | sed -e 's/\\\rotatemathfig{.*{\(.*\)/\1/' | sed -e 's/}//g' >> diagrams.list