Next Previous Contents

4. Script

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

#!/bin/bash
# split files into single Freqencys
# calls "sjbsplit"
# output: *.000 to *.255
#

SAVEPATH=./split

mkdir $SAVEPATH

for FILE in *.pre
do
  echo sjbsplit $FILE
  bunzip2 -k -c $FILE | sjbsplit $FILE
  COUNTER=0
  while [  $COUNTER -lt 256 ]; do
    cat $FILE.$COUNTER.temp | bzip2 >$SAVEPATH/$FILE.$COUNTER
    rm $FILE.$COUNTER.temp
    let COUNTER=COUNTER+1
  done
done


Next Previous Contents