for i in {001..999} ; do a=`find ./$i/Native/ -type f 2>>/dev/null | wc -l` && b=`find ./$i/Text/ -type f 2>>/dev/null/ | wc -l` && c=$(($( wc -l ./Data/loadfile.txt 2>>/dev/null | awk '{ print $1 }')-1)) && echo -n "$i," && echo "$a,$b,$c" ; done
Assumes all Allegro exports are located in the same top level directory, and follow a simple alpha-numeric sequence.
In the future I plan on building a simple script around this that prompts for a top-level directory so it can be run from anywhere on the network. Additionally, storing the report to a text file and running subsequent calculations to determine any time a line item doesn’t match perfectly between Native, Text and Record count.
