Welcome to WebmasterWorld Guest from

Forum Moderators: bakedjake

Message Too Old, No Replies

Unix file format..?



10:05 am on Mar 11, 2002 (gmt 0)

10+ Year Member


what exactly is opening and saving files in "unix file format"..??

can i do that using the editor editplus..??

Thanks for any help..!


10:23 am on Mar 11, 2002 (gmt 0)

WebmasterWorld Senior Member digitalghost is a WebmasterWorld Top Contributor of All Time 10+ Year Member

Not sure about EditPlus but TextPad saves in the Unix file format.

If it is a text file it strips out carriage returns and the EOF marker.



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

WebmasterWorld Senior Member 10+ Year Member

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 ;)



12:51 pm on Mar 11, 2002 (gmt 0)

10+ Year Member


Thanks to both of you for the valuable input...!

yeah, i am trying to install a cgi script..but if i have change anything...I'll have to open the file and save the changes in unix format only...thats the reason, i had asked...

I am downloading the textpad now...

Thanks again..


1:10 pm on Mar 11, 2002 (gmt 0)

10+ Year Member


Just got the textpad..and installed it...

How do i specify a file to be opened and saved in unix format...using textpad..??

Is it in the encoding tab that i select ANSI, Instead of DOS...??
If that is the way, is that enough or do i have to pick other options in the other tabs also...like in the tabs " file format " and the " file of Type " tab..??

Thanks again..!


Featured Threads

Hot Threads This Week

Hot Threads This Month