The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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
Delete carriage return in SED juedsivi Shell Programming and Scripting 3 10-09-2008 03:50 PM
add carriage return at end of file HAA Shell Programming and Scripting 2 11-20-2007 11:58 AM
Carriage Return at end of file bd_joy Shell Programming and Scripting 14 10-20-2006 01:20 PM
How to delete carriage return in SED stevefox Shell Programming and Scripting 3 12-23-2005 06:03 AM
Dont want carriage return videsh77 Shell Programming and Scripting 3 12-16-2004 09:26 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-24-2009
streetfi8er streetfi8er is offline
Registered User
  
 

Join Date: Feb 2009
Posts: 2
carriage return and linefeed

hi can anyone please tell me the difference between carriage return, linefeed and newline ?
  #2 (permalink)  
Old 06-24-2009
Yogesh Sawant's Avatar
Yogesh Sawant Yogesh Sawant is offline Forum Staff  
Part Time Moderator and Full Time Dad
  
 

Join Date: Sep 2006
Location: Rossem, Tazenda
Posts: 1,086
reading here might help
  #3 (permalink)  
Old 06-24-2009
methyl methyl is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 1,147
See "man ascii".

Newline and linefeed are the same character.
Carriage-return is a different character.

In unix text files the line terminator is linefeed.
In MSDOS/Windows text files the line terminator is two characters: carriage-return linefeed.

Both carriage-return and linefeed date from the manual typewriter keys of the same name.
Sponsored Links
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 01:56 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0