Next Previous Contents

4. Script

This is a script which you can use to call SJBfkt:

#!/bin/bash
# interpolates all files
# calls "SJBfkt"
# $1 is full time in seconds (e.g.: 5)
# $2 is sum of interpolation values (e.g.: 256)
# CAUTION: $2 must be a power of 2!
#

LENGTH=$1
VALUES=$2
SAVEPATH=./time

mkdir $SAVEPATH

for FILE in *s
do
  echo sjbfkt $FILE $LENGTH $VALUES
  cat $FILE | sjbfkt $LENGTH $VALUES >$FILE.fkt
  mv $FILE $SAVEPATH
done
# delete empty files
echo now deleting empty files...
find -empty -exec rm '{}' ';'


Next Previous Contents