ascii or not ascii

Doug Gwyn gwyn at brl-smoke.ARPA
Sat Apr 30 07:05:16 AEST 1988


In article <533 at zoot.lamont.Columbia.edu> hough at lamont.Columbia.edu (sue hough) writes:
>I am trying to read an ascii (Prime generated) 9-track tape on a Unix
> system.  The restored files look like ascii when I use MORE, CAT,
> HEAD, etc.  But when I try to edit them with vi, I get
> "not an ascii file".  Any suggestions appreciated.

As I recall, Prime typically stores text in 7-bit ASCII with the high
bit SET.  On the receiving end, do something like
	tr '[\201-\377]' '[\001-\0177]' < prime_data > unix_data
if your "tr" can handle it, or write a small C program to do the same
thing.



More information about the Comp.unix.questions mailing list