EDF Header Repair

This script fixes some possible errors in the header of an EDF/BDF file (European Data Format):


  edf-hdr-repair.sh my_file.edf

In case you want to repair multiple files (in the same directory), use the following command:

  for f in *.[eb]df ; do edf-hdr-repair.sh $f ; done

(Make sure the script is in a directory which is in your PATH variable e.g. /home/your_user_name/bin or use the full path to the script)

Remark: EDFbrowser has also a tool for repairing a broken header which is more powerful and can fix more problems.

System requirements: GNU/Linux & Bash & coreutils


More info