homepage Welcome to WebmasterWorld Guest from 54.211.213.10
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

    
Unix file format..?
ideavirus




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

Hii,

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

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

Thanks for any help..!
:)

 

digitalghost




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

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.

DG

gethan




msg:915043
 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

ideavirus




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

Hii,

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..
:)

ideavirus




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

Hii,

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..!
:)

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved