Difficulty with the editing mode
VLD/VMB
moss at BRL.MIL
Sat Dec 17 00:41:02 AEST 1988
George,
It sounds like your file has no new-line characters in it. Different
systems use different characters to represent the end of a line in a text
file; Unix uses the ASCII code for linefeed ('\n') which is 012 (octal). The
vi editor doesn't see any '\n' character, so it thinks there is just one line
of text.
Use the following command to examine the contents of your file and
ascertain what is being used to represent a new-line:
od -bc < file | more
Then write a 'C' program which transposes that character or sequence
of characters to 012 or '\n'.
-moss
More information about the Comp.unix.questions
mailing list