Next Previous Contents

4. Script

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

#!/bin/bash
# does a fft with all files
# calls "SJBfft"
# $1 is weight (0...non weighted)
#

SAVEPATH=./fkt
WEIGHT=$1
SUFFIX=fft

mkdir $SAVEPATH

for FILE in *.fkt
do
  echo sjbfft $FILE
  cat $FILE | sjbfft $WEIGHT >$FILE.$SUFFIX
  mv $FILE $SAVEPATH
done


Next Previous Contents