Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Search Forums:



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 !!

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 06-04-2007
Registered User
 

Join Date: Aug 2005
Posts: 253
Thanks: 0
Thanked 0 Times in 0 Posts
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
Sponsored Links
    #2  
Old 06-04-2007
ennstate's Avatar
Registered User
 

Join Date: Mar 2007
Location: Stockholm
Posts: 230
Thanks: 1
Thanked 2 Times in 2 Posts
cksum

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


Code:
cksum <file1> <file2>

Thanks
Nagarajan Ganesan.
Sponsored Links
    #3  
Old 06-04-2007
awk awk is offline
Registered User
 

Join Date: Feb 2007
Posts: 135
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
list the files with size in bytes balireddy_77 Shell Programming and Scripting 4 01-06-2009 12:17 PM
Remove first N bytes and last N bytes from a binary file on AIX. naveendronavall Shell Programming and Scripting 1 05-24-2008 11:06 AM
How to get the size of process in Bytes darshi UNIX for Dummies Questions & Answers 2 08-20-2007 08:22 AM
Email message if file size > 0 bytes poste_d_ordure Shell Programming and Scripting 1 06-02-2006 07: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 05:08 PM



All times are GMT -4. The time now is 03:53 AM.