The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com




Thread: File Format
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 08-01-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
  
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
Without detailed information about how it's supposedly line terminated, it's tricky to come up with a suggestion. Regular DOS files have CR/LF line terminators, which count as line terminators in Unix too (seeing as Unix uses just LF, and regards the DOS CR before it as just another control character). Can you display a hex dump of, say, the first few dozen characters, enough to see where the first line break is supposed to be? (Try hexdump test.out | head or xxd test.out | head or od -test.out | head)