The UNIX and Linux Forums  

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


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Remove first N bytes and last N bytes from a binary file on AIX. naveendronavall Shell Programming and Scripting 1 05-24-2008 08:06 AM
How to get the size of process in Bytes darshi UNIX for Dummies Questions & Answers 2 08-20-2007 05:22 AM
list the files with size in bytes balireddy_77 Shell Programming and Scripting 3 12-06-2006 01:38 AM
Email message if file size > 0 bytes poste_d_ordure Shell Programming and Scripting 1 06-02-2006 04:02 PM
Take a file from the system and put on tape and reset the file to 0 bytes JackieRyan26 UNIX for Dummies Questions & Answers 1 09-06-2001 02:08 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 06-04-2007
Registered User
 

Join Date: Aug 2005
Posts: 229
file size in bytes is different in ftp and local pc

Hi
how can it be that say i have text (xls) file that is 661 bytes when i upload it to Solaris ftp its becomes 650 byes
and when i downloading it back its again 661 bytes
both in my local pc and Solaris ftp the file remains not corrupted and valid
Reply With Quote
Forum Sponsor
  #2  
Old 06-04-2007
Registered User
 

Join Date: Mar 2007
Location: Chennai
Posts: 222
cksum

Hi,
I am just curious to know the checksum of the two files,

Code:
cksum <file1> <file2>
Thanks
Nagarajan Ganesan.
Reply With Quote
  #3  
Old 06-04-2007
awk awk is offline
Registered User
 

Join Date: Feb 2007
Posts: 119
Quote:
Originally Posted by umen
Hi
how can it be that say i have text (xls) file that is 661 bytes when i upload it to Solaris ftp its becomes 650 byes
and when i downloading it back its again 661 bytes
both in my local pc and Solaris ftp the file remains not corrupted and valid
in unix, the line terminator is a \n (Line feed)

in microsoft - the line terminator in \r\n (carriage return line feed)

Bet your file as 11 lines it it. The difference is the extra character that is added in the conversion from unix to dos type ascii files.

Transfer in binary if you want the same file size. But may not be usable in some dos applications.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 02:05 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0