Path: utzoo!attcan!uunet!ncrlnk!ncrcae!hubcap!gatech!uflorida!haven!adm!xadmx!moss@BRL.MIL From: moss@BRL.MIL (VLD/VMB) Newsgroups: comp.unix.questions Subject: Re: Difficulty with the editing mode Message-ID: <17834@adm.BRL.MIL> Date: 16 Dec 88 14:41:02 GMT Sender: news@adm.BRL.MIL Lines: 16 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