#!/bin/bash
#
ftype=EVT

if [ $# -ge 1 ]; then ftype=$1; fi

for file in *.$ftype; do
    echo "Processing file $file"
    bedsDecode -d $file > $file.OUT
done
