Page is a not externally linkable
- Hardware and OS Related Technologies
-- Linux, Unix, and *nix like Operating Systems
---- Unix file format..?


gethan - 10:27 am on Mar 11, 2002 (gmt 0)


Hi ideavirus,

DOS and Unix have two differing ways of specifing a "End OF line/New Line".

In DOS a newline is indicated by the control characters for carriage return & newline. In unix a newline control character is all that is needed.

If you were to see the control characters in your text editor the \r is carriage return, and \n is new line.

For html it makes no difference to the servers or browser but with scripts like perl the \r's on a unix system will cause problems. Most unix systems have a util called dos2unix which strips the \r's. All your text editor does in the save unix mode is miss out the \r's.

There will be assci codes for \n \r but I don't know them ;)

HTH


Thread source:: http://www.webmasterworld.com/linux/129.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com