The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 08-02-2007
jgt jgt is offline
Registered User
 

Join Date: Apr 2007
Location: 44.21.48N 80.50.15W
Posts: 348
Unix text file end each line with a line feed character.
DOS/Windows text files end each line with a carriage return and line feed.
Because of this, there is one additional character in a DOS/Windows file for each line in the file. Your file contains 13421 - 13292 = 129 lines.
When you transfer the file from Unix to DOS using ascii mode in ftp, this conversion takes place automatically. If you use binary mode, no conversion takes place.
Reply With Quote