WFDB SWIG Toolbox for MATLAB 1.0.0

File: <base>/pn-server/gen_databases.sh (372 bytes)
#!/bin/bash

#Script used to generate databases for MATLAB querying by 
#parsing the physiobank-index file



#Get names of all unique databases in Physionet
touch db_list.txt
for i in `cat physiobank-index | cut -f1 -d"/" | sort -u` ;
do 
      echo "Generating database file for: $i"
      cat physiobank-index | grep $i  > $i".txt"
      echo ${i} >> db_list.txt
done