A ruby script to stat edr files