sed -n -e 's/^[ab] \([^ ]*\)/\1/p' -e 's/^d \("[^"]*"[^ ]*\) \([^ ]*\).*/\2/p' < database.st
variation to get the directory names
sed -n -e 's/^[ab] \([^ ]*\)\/[^ ]*.*/\1/p' -e 's/^d \("[^"]*"[^ ]*\) \([^ ]*\)\/[^ ]* .*/\2/p' < database.st | sort -u
sed -n 's/RENAME FIELD "\([^"]*\)" OF "\([^"]*\)" TO "\([^"]*\)".*/F,\2,\1,\3/p' incremental.df > renamed_fields.csv