# rename this to tog.sh and # do chmod 755 tog.sh to # be able, eg in Termux, to # use eg editor Micro to # construct program cards # elegantly in G15 PMN # This assumes tog.dat, w/correct # number of blanks, on same folder # as your input file intog.txt. # This translates intog.txt # into ldisk8.dat which, when # renamed to eg ldisk.g15, # will allow the text file to # be at card 8 and onwards, with # spaces before and after. # This converts all backticks # to space so that, when using # a linux editor like micro # in the replace mode, it is # easy to see the structure # of the cards. # see included example intog.txt # this is at intraplates.com # /scientific_apks # and is suitable to use eg # with g15batch also for Android # given a program at startup # that copies the ldisk8 program # to a suitable location for # performance eg on top of # tf or pmwork or such rm -f ldisk8.dat rm -f toga.dat rm -f togb.dat tr -d '\n' < intog.txt > toga.dat tr '`' ' ' < toga.dat > togb.dat cat tog.dat togb.dat tog.dat tog.dat > toga.dat cat toga.dat | sed 's/./\x00\x00\x00\0/g;' > ldisk8.dat rm -f toga.dat rm -f togb.dat