Tuesday, February 17, 2015

Convert Tokenized BBC Basic to Plain Text

Use the BBCBasicToText python script from https://github.com/tom-seddon/beeb

For example, to convert a directory of files:
for file in `ls $dir`
do
 txt=`echo $file | sed 's/,ffb/.txt/g' `
 if [[ $txt == *".txt"* ]]; then
  echo $txt
  python BBCBasicToText.py $dir/$file > out/$txt
 fi
done