Tech-Talk

Technology tinkering notes.

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
Posted by Dan at 5:24 PM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Blog Archive

  • ►  2026 (1)
    • ►  May (1)
  • ►  2024 (1)
    • ►  January (1)
  • ►  2017 (2)
    • ►  October (1)
    • ►  January (1)
  • ►  2016 (7)
    • ►  May (1)
    • ►  April (3)
    • ►  March (2)
    • ►  February (1)
  • ▼  2015 (10)
    • ►  December (1)
    • ►  November (3)
    • ►  July (1)
    • ►  May (1)
    • ►  April (1)
    • ►  March (2)
    • ▼  February (1)
      • Convert Tokenized BBC Basic to Plain Text
  • ►  2014 (8)
    • ►  December (1)
    • ►  November (1)
    • ►  September (4)
    • ►  February (2)
  • ►  2013 (2)
    • ►  February (2)

Popular Posts

Simple theme. Powered by Blogger.